From 0b6a55655e030818e5cc46e4ed05f9bb2e2b7343 Mon Sep 17 00:00:00 2001 From: erxian Date: Fri, 18 Nov 2016 14:28:21 +0800 Subject: [PATCH] update secret command Signed-off-by: erxian Upstream-commit: 0171a79c56599d5b687dd046ac7295c5cacad779 Component: cli --- components/cli/command/secret/create.go | 2 +- components/cli/command/secret/inspect.go | 4 ++-- components/cli/command/secret/ls.go | 2 +- components/cli/command/secret/remove.go | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/cli/command/secret/create.go b/components/cli/command/secret/create.go index da1cb9275e..faef32ef89 100644 --- a/components/cli/command/secret/create.go +++ b/components/cli/command/secret/create.go @@ -25,7 +25,7 @@ func newSecretCreateCommand(dockerCli *command.DockerCli) *cobra.Command { } cmd := &cobra.Command{ - Use: "create [name]", + Use: "create [OPTIONS] SECRET [SECRET...]", Short: "Create a secret using stdin as content", Args: cli.RequiresMinArgs(1), RunE: func(cmd *cobra.Command, args []string) error { diff --git a/components/cli/command/secret/inspect.go b/components/cli/command/secret/inspect.go index a82a26e4a8..1dda6f7838 100644 --- a/components/cli/command/secret/inspect.go +++ b/components/cli/command/secret/inspect.go @@ -16,8 +16,8 @@ type inspectOptions struct { func newSecretInspectCommand(dockerCli *command.DockerCli) *cobra.Command { opts := inspectOptions{} cmd := &cobra.Command{ - Use: "inspect SECRET [SECRET]", - Short: "Inspect a secret", + Use: "inspect [OPTIONS] SECRET [SECRET...]", + Short: "Display detailed information on one or more secrets", Args: cli.RequiresMinArgs(1), RunE: func(cmd *cobra.Command, args []string) error { opts.names = args diff --git a/components/cli/command/secret/ls.go b/components/cli/command/secret/ls.go index e99f99e3d2..d96b377867 100644 --- a/components/cli/command/secret/ls.go +++ b/components/cli/command/secret/ls.go @@ -21,7 +21,7 @@ func newSecretListCommand(dockerCli *command.DockerCli) *cobra.Command { opts := listOptions{} cmd := &cobra.Command{ - Use: "ls", + Use: "ls [OPTIONS]", Short: "List secrets", Args: cli.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { diff --git a/components/cli/command/secret/remove.go b/components/cli/command/secret/remove.go index 75b4be622b..5026a437f8 100644 --- a/components/cli/command/secret/remove.go +++ b/components/cli/command/secret/remove.go @@ -15,8 +15,8 @@ type removeOptions struct { func newSecretRemoveCommand(dockerCli *command.DockerCli) *cobra.Command { return &cobra.Command{ - Use: "rm SECRET [SECRET]", - Short: "Remove a secret", + Use: "rm SECRET [SECRET...]", + Short: "Remove one or more secrets", Args: cli.RequiresMinArgs(1), RunE: func(cmd *cobra.Command, args []string) error { opts := removeOptions{