Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add copyCmd() #432

Merged
merged 18 commits into from
Jul 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: modify copyCmd help msg
Signed-off-by: Juncheng Zhu <junczhu@microsoft.com>
  • Loading branch information
junczhu committed Jul 5, 2022
commit f6bb72c2407a80247a91ffbcae1736e5a8699fb8
6 changes: 3 additions & 3 deletions cmd/oras/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ func copyCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "copy <from-ref> <to-ref>",
Aliases: []string{"cp"},
Short: "Copy files from ref to ref",
Short: "Copy a manifest between repositories",
Long: `Copy artifacts from one reference to another reference

Examples - Copy image only
Examples - Copy the manifest tagged 'v1' from from repository 'localhost:5000/net-monitor' to repository 'localhost:5000/net-monitor-copy'
oras cp localhost:5000/net-monitor:v1 localhost:5000/net-monitor-copy:v1
Examples - Copy image and artifacts
Examples - Copy the manifest tagged 'v1' and referrer artifacts from repository 'localhost:5000/net-monitor' to 'localhost:5000/net-monitor-copy'
oras cp -r localhost:5000/net-monitor:v1 localhost:5000/net-monitor-copy:v1
`,
Args: cobra.MinimumNArgs(2),
Expand Down