mirror of
https://github.com/docker/cli.git
synced 2026-01-23 15:21:32 +03:00
Update command usage and documentation
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -23,7 +23,7 @@ type commonOptions struct {
|
||||
func NewStackCommand(dockerCli command.Cli) *cobra.Command {
|
||||
var opts commonOptions
|
||||
cmd := &cobra.Command{
|
||||
Use: "stack",
|
||||
Use: "stack [OPTIONS]",
|
||||
Short: "Manage Docker stacks",
|
||||
Args: cli.NoArgs,
|
||||
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
||||
@@ -17,7 +17,7 @@ func newListCommand(dockerCli command.Cli, common *commonOptions) *cobra.Command
|
||||
opts := options.List{}
|
||||
|
||||
cmd := &cobra.Command{
|
||||
Use: "ls",
|
||||
Use: "ls [OPTIONS]",
|
||||
Aliases: []string{"list"},
|
||||
Short: "List stacks",
|
||||
Args: cli.NoArgs,
|
||||
|
||||
@@ -13,7 +13,7 @@ func newRemoveCommand(dockerCli command.Cli, common *commonOptions) *cobra.Comma
|
||||
var opts options.Remove
|
||||
|
||||
cmd := &cobra.Command{
|
||||
Use: "rm STACK [STACK...]",
|
||||
Use: "rm [OPTIONS] STACK [STACK...]",
|
||||
Aliases: []string{"remove", "down"},
|
||||
Short: "Remove one or more stacks",
|
||||
Args: cli.RequiresMinArgs(1),
|
||||
|
||||
Reference in New Issue
Block a user