Skip to content

Commit

Permalink
Add list alias for all ls commands
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpl committed Nov 20, 2020
1 parent fa9a38c commit e384df2
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 e384df2

Please sign in to comment.