Skip to content

Commit

Permalink
Merge pull request #136 from docker/chore-ls-list
Browse files Browse the repository at this point in the history
Add list alias for all ls commands
  • Loading branch information
silvin-lubecki authored Nov 20, 2020
2 parents 97aa80f + 7ba9037 commit 8ad1a0d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/commands/org/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func newListCmd(streams command.Streams, hubClient *hub.Client, parent string) *
var opts listOptions
cmd := &cobra.Command{
Use: listName,
Aliases: []string{"list"},
Short: "List all the organizations",
Args: cli.NoArgs,
DisableFlagsInUseLine: true,
Expand Down
1 change: 1 addition & 0 deletions internal/commands/repo/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func newListCmd(streams command.Streams, hubClient *hub.Client, parent string) *
var opts listOptions
cmd := &cobra.Command{
Use: listName + " [ORGANIZATION]",
Aliases: []string{"list"},
Short: "List all the repositories from your account or an organization",
Args: cli.RequiresMaxArgs(1),
DisableFlagsInUseLine: true,
Expand Down
1 change: 1 addition & 0 deletions internal/commands/tag/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func newListCmd(streams command.Streams, hubClient *hub.Client, parent string) *
var opts listOptions
cmd := &cobra.Command{
Use: lsName + " [OPTION] REPOSITORY",
Aliases: []string{"list"},
Short: "List all the images in a repository",
Args: cli.ExactArgs(1),
DisableFlagsInUseLine: true,
Expand Down
1 change: 1 addition & 0 deletions internal/commands/token/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func newListCmd(streams command.Streams, hubClient *hub.Client, parent string) *
var opts listOptions
cmd := &cobra.Command{
Use: lsName + " [OPTION]",
Aliases: []string{"list"},
Short: "List all the Personal Access Tokens",
Args: cli.NoArgs,
DisableFlagsInUseLine: true,
Expand Down

0 comments on commit 8ad1a0d

Please sign in to comment.