зеркало из https://github.com/docker/hub-tool.git
Add list alias for all ls commands
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
Родитель
fa9a38c2ec
Коммит
7ba9037579
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче