Skip to content

Commit

Permalink
fix(doc): resolve example error for oras tag (#1419)
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah authored Jun 20, 2024
1 parent 0bbd881 commit 55ca84a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/oras/root/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package root
import (
"errors"
"fmt"

"oras.land/oras/cmd/oras/internal/output"

"github.com/spf13/cobra"
Expand Down Expand Up @@ -58,7 +59,7 @@ Example - Tag the manifest 'v1.0.1' in 'localhost:5000/hello' to 'v1.0.1', 'v1.0
oras tag --concurrency 1 localhost:5000/hello:v1.0.1 v1.0.2 latest
Example - Tag the manifest 'v1.0.1' to 'v1.0.2' in an OCI image layout folder 'layout-dir':
oras tag layout-dir:v1.0.1 v1.0.2
oras tag --oci-layout layout-dir:v1.0.1 v1.0.2
`,
Args: func(cmd *cobra.Command, args []string) error {
if len(args) > 0 && (args[0] == "list" || args[0] == "ls") {
Expand Down

0 comments on commit 55ca84a

Please sign in to comment.