Skip to content

Commit

Permalink
doc: update example doc (#518)
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah authored Aug 22, 2022
1 parent b0bdc40 commit fcdc769
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/oras/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ func copyCmd() *cobra.Command {
** This command is in preview and under development. **
Examples - Copy the artifact tagged 'v1' from repository 'localhost:5000/net-monitor' to repository 'localhost:5000/net-monitor-copy'
Example - Copy the artifact tagged 'v1' 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 the artifact tagged 'v1' and its referrers from repository 'localhost:5000/net-monitor' to 'localhost:5000/net-monitor-copy'
Example - Copy the artifact tagged 'v1' and its referrers 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.ExactArgs(2),
Expand Down
2 changes: 1 addition & 1 deletion cmd/oras/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Example - Push repository with manifest annotation file
}

cmd.Flags().StringVarP(&opts.manifestConfigRef, "config", "", "", "manifest config file")
cmd.Flags().StringVarP(&opts.artifactType, "artifact-type", "", "", "media type of config or manifest")
cmd.Flags().StringVarP(&opts.artifactType, "artifact-type", "", "", "media type of the manifest config")

option.ApplyFlags(&opts, cmd.Flags())
return cmd
Expand Down

0 comments on commit fcdc769

Please sign in to comment.