Skip to content

Commit

Permalink
docs: improve the description of cp (oras-project#1498)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
wangxiaoxuan273 authored and qweeah committed Dec 5, 2024
1 parent 3e2f778 commit abc9c1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/oras/root/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import (
"strings"
"sync"

"oras.land/oras/cmd/oras/internal/display/status"

"github.com/opencontainers/go-digest"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -58,7 +60,7 @@ func copyCmd() *cobra.Command {
Use: "cp [flags] <from>{:<tag>|@<digest>} <to>[:<tag>[,<tag>][...]]",
Aliases: []string{"copy"},
Short: "Copy artifacts from one target to another",
Long: `Copy artifacts from one target to another
Long: `Copy artifacts from one target to another. When copying an image index, all of its manifests will be copied
Example - Copy an artifact between registries:
oras cp localhost:5000/net-monitor:v1 localhost:6000/net-monitor-copy:v1
Expand Down

0 comments on commit abc9c1e

Please sign in to comment.