Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add list alias for all ls commands #136

Merged
merged 1 commit into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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