Skip to content

Commit

Permalink
correct package name
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
  • Loading branch information
qweeah committed Feb 21, 2023
1 parent 8675b62 commit 0eb31f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/oras/root/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ import (
"fmt"
"os"
"strings"

"oras.land/oras/cmd/oras/root"
)

// Example gives playable snippets of using oras CLI in command-line scripting
// via Golang.
func Example() {
// change below array to play with your own cmd args:
args := []string{"repo", "ls", "mcr.microsoft.com"}
cmd := cmd.NewRoot()
cmd := root.New()
cmd.SetArgs(args)
fmt.Printf("Executing 'oras %s':", strings.Join(args, " "))
err := cmd.Execute()
Expand Down

0 comments on commit 0eb31f5

Please sign in to comment.