From 7ba9037579263536a776e62f54b7ea6fa4ad1847 Mon Sep 17 00:00:00 2001 From: Djordje Lukic Date: Fri, 20 Nov 2020 17:18:33 +0100 Subject: [PATCH] Add list alias for all ls commands Signed-off-by: Djordje Lukic --- internal/commands/org/list.go | 1 + internal/commands/repo/list.go | 1 + internal/commands/tag/list.go | 1 + internal/commands/token/list.go | 1 + 4 files changed, 4 insertions(+) diff --git a/internal/commands/org/list.go b/internal/commands/org/list.go index 42e1916..5bc4884 100644 --- a/internal/commands/org/list.go +++ b/internal/commands/org/list.go @@ -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, diff --git a/internal/commands/repo/list.go b/internal/commands/repo/list.go index 2c1b20a..372c01c 100644 --- a/internal/commands/repo/list.go +++ b/internal/commands/repo/list.go @@ -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, diff --git a/internal/commands/tag/list.go b/internal/commands/tag/list.go index ad0b0e8..aaec414 100644 --- a/internal/commands/tag/list.go +++ b/internal/commands/tag/list.go @@ -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, diff --git a/internal/commands/token/list.go b/internal/commands/token/list.go index 9d3f1e8..fba10be 100644 --- a/internal/commands/token/list.go +++ b/internal/commands/token/list.go @@ -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,