Skip to content

Commit

Permalink
docs: improve the description of cp (#1498)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
wangxiaoxuan273 authored and qweeah committed Dec 5, 2024
1 parent 3bf29ce commit 62acfec
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"

Check failure on line 26 in cmd/oras/root/cp.go

View workflow job for this annotation

GitHub Actions / lint (1.22)

other declaration of status

Check failure on line 26 in cmd/oras/root/cp.go

View workflow job for this annotation

GitHub Actions / lint (1.22)

other declaration of status

Check failure on line 26 in cmd/oras/root/cp.go

View workflow job for this annotation

GitHub Actions / Analyze (1.22)

other declaration of status

Check failure on line 26 in cmd/oras/root/cp.go

View workflow job for this annotation

GitHub Actions / build (1.23)

other declaration of 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 62acfec

Please sign in to comment.