Skip to content

Commit

Permalink
docs: improve the description of cp
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
Xiaoxuan Wang committed Sep 12, 2024
1 parent d1fe4d0 commit 12dfe5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/oras/root/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -60,7 +61,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 12dfe5f

Please sign in to comment.