From 3c409ca3f32e0526a3d08f9f1c10c92b548286f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Mej=C3=ADas=20Rodr=C3=ADguez?= Date: Sat, 17 Aug 2019 17:20:31 -0400 Subject: [PATCH] Update usage section in commands to use <> for args --- cmd/configGet.go | 2 +- cmd/configSet.go | 2 +- cmd/endpointGroupInspect.go | 2 +- cmd/endpointInspect.go | 2 +- cmd/stackDeploy.go | 2 +- cmd/stackInspect.go | 2 +- cmd/stackRemove.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/configGet.go b/cmd/configGet.go index ca50b7e..572d99b 100644 --- a/cmd/configGet.go +++ b/cmd/configGet.go @@ -10,7 +10,7 @@ import ( // configGetCmd represents the config get command var configGetCmd = &cobra.Command{ - Use: "get KEY", + Use: "get ", Short: "Get config", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { diff --git a/cmd/configSet.go b/cmd/configSet.go index 426ecb2..f9b83cc 100644 --- a/cmd/configSet.go +++ b/cmd/configSet.go @@ -12,7 +12,7 @@ import ( // configSetCmd represents the config set command var configSetCmd = &cobra.Command{ - Use: "set KEY VALUE", + Use: "set ", Short: "Set config", Args: cobra.ExactArgs(2), Run: func(cmd *cobra.Command, args []string) { diff --git a/cmd/endpointGroupInspect.go b/cmd/endpointGroupInspect.go index 16b1724..606b47a 100644 --- a/cmd/endpointGroupInspect.go +++ b/cmd/endpointGroupInspect.go @@ -15,7 +15,7 @@ import ( // endpointGroupInspectCmd represents the endpoint group inspect command var endpointGroupInspectCmd = &cobra.Command{ - Use: "inspect", + Use: "inspect ", Short: "Inspect an endpoint group", Example: " psu endpoint group inspect production", Args: cobra.ExactArgs(1), diff --git a/cmd/endpointInspect.go b/cmd/endpointInspect.go index 5f893fb..c7944bf 100644 --- a/cmd/endpointInspect.go +++ b/cmd/endpointInspect.go @@ -16,7 +16,7 @@ import ( // endpointInspectCmd represents the endpoint inspect command var endpointInspectCmd = &cobra.Command{ - Use: "inspect", + Use: "inspect ", Short: "Inspect an endpoint", Example: " psu endpoint inspect primary", Args: cobra.MaximumNArgs(1), diff --git a/cmd/stackDeploy.go b/cmd/stackDeploy.go index 254fd8e..b715a87 100644 --- a/cmd/stackDeploy.go +++ b/cmd/stackDeploy.go @@ -15,7 +15,7 @@ import ( // stackDeployCmd represents the undeploy command var stackDeployCmd = &cobra.Command{ - Use: "deploy STACK_NAME", + Use: "deploy ", Short: "Deploy a new stack or update an existing one", Aliases: []string{"up", "create"}, Example: " psu stack deploy mystack --stack-file mystack.yml", diff --git a/cmd/stackInspect.go b/cmd/stackInspect.go index d8a397c..1e1c5e7 100644 --- a/cmd/stackInspect.go +++ b/cmd/stackInspect.go @@ -18,7 +18,7 @@ import ( // stackInspectCmd represents the stack inspect command var stackInspectCmd = &cobra.Command{ - Use: "inspect", + Use: "inspect ", Short: "Inspect a stack", Example: " psu stack inspect mystack", Args: cobra.ExactArgs(1), diff --git a/cmd/stackRemove.go b/cmd/stackRemove.go index a03bb86..0eeee59 100644 --- a/cmd/stackRemove.go +++ b/cmd/stackRemove.go @@ -12,7 +12,7 @@ import ( // stackRemoveCmd represents the remove command var stackRemoveCmd = &cobra.Command{ - Use: "remove STACK_NAME", + Use: "remove ", Short: "Remove a stack", Aliases: []string{"rm", "down"}, Example: " psu stack rm mystack",