From b1d9b4b857686469e4fae290c9cc66f1b68c9b23 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:18:44 -0400 Subject: [PATCH] Fix command examples indentation --- cmd/endpointGroupInspect.go | 2 +- cmd/endpointInspect.go | 2 +- cmd/stackDeploy.go | 2 +- cmd/stackInspect.go | 2 +- cmd/stackRemove.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/endpointGroupInspect.go b/cmd/endpointGroupInspect.go index d0de8ca..16b1724 100644 --- a/cmd/endpointGroupInspect.go +++ b/cmd/endpointGroupInspect.go @@ -17,7 +17,7 @@ import ( var endpointGroupInspectCmd = &cobra.Command{ Use: "inspect", Short: "Inspect an endpoint group", - Example: "psu endpoint group inspect production", + Example: " psu endpoint group inspect production", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { endpointGroupName := args[0] diff --git a/cmd/endpointInspect.go b/cmd/endpointInspect.go index 4145e47..5f893fb 100644 --- a/cmd/endpointInspect.go +++ b/cmd/endpointInspect.go @@ -18,7 +18,7 @@ import ( var endpointInspectCmd = &cobra.Command{ Use: "inspect", Short: "Inspect an endpoint", - Example: "psu endpoint inspect primary", + Example: " psu endpoint inspect primary", Args: cobra.MaximumNArgs(1), Run: func(cmd *cobra.Command, args []string) { var endpoint portainer.Endpoint diff --git a/cmd/stackDeploy.go b/cmd/stackDeploy.go index 3e0864d..254fd8e 100644 --- a/cmd/stackDeploy.go +++ b/cmd/stackDeploy.go @@ -18,7 +18,7 @@ var stackDeployCmd = &cobra.Command{ Use: "deploy STACK_NAME", Short: "Deploy a new stack or update an existing one", Aliases: []string{"up", "create"}, - Example: "psu stack deploy mystack --stack-file mystack.yml", + Example: " psu stack deploy mystack --stack-file mystack.yml", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { var loadedEnvironmentVariables []portainer.Pair diff --git a/cmd/stackInspect.go b/cmd/stackInspect.go index 14f4771..d8a397c 100644 --- a/cmd/stackInspect.go +++ b/cmd/stackInspect.go @@ -20,7 +20,7 @@ import ( var stackInspectCmd = &cobra.Command{ Use: "inspect", Short: "Inspect a stack", - Example: "psu stack inspect mystack", + Example: " psu stack inspect mystack", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { stackName := args[0] diff --git a/cmd/stackRemove.go b/cmd/stackRemove.go index fe97b69..a03bb86 100644 --- a/cmd/stackRemove.go +++ b/cmd/stackRemove.go @@ -15,7 +15,7 @@ var stackRemoveCmd = &cobra.Command{ Use: "remove STACK_NAME", Short: "Remove a stack", Aliases: []string{"rm", "down"}, - Example: "psu stack rm mystack", + Example: " psu stack rm mystack", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { portainerClient, clientRetrievalErr := common.GetClient()