From abc9c1e797ea13268d181ad9b48d25370880e4af 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/oras/root/cp.go b/cmd/oras/root/cp.go index 7cec065a4..caa73f65d 100644 --- a/cmd/oras/root/cp.go +++ b/cmd/oras/root/cp.go @@ -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" @@ -58,7 +60,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