From 0baec3567309373b9304e4040a1ca4f36f1e6f36 Mon Sep 17 00:00:00 2001 From: Xiaoxuan Wang <103478229+wangxiaoxuan273@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:04:40 +0800 Subject: [PATCH] docs: improve the description of cp (#1498) Signed-off-by: Xiaoxuan Wang --- cmd/oras/root/cp.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/oras/root/cp.go b/cmd/oras/root/cp.go index 9f0fd6fa4..8cf5ac250 100644 --- a/cmd/oras/root/cp.go +++ b/cmd/oras/root/cp.go @@ -19,11 +19,12 @@ import ( "context" "encoding/json" "fmt" - "oras.land/oras/cmd/oras/internal/display/status" "slices" "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" @@ -60,7 +61,7 @@ func copyCmd() *cobra.Command { Use: "cp [flags] {:|@} [:[,][...]]", 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