Fix command examples indentation

This commit is contained in:
Juan Carlos Mejías Rodríguez 2019-08-17 17:18:44 -04:00
parent ba0071a73a
commit b1d9b4b857
5 changed files with 5 additions and 5 deletions

View File

@ -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]

View File

@ -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

View File

@ -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

View File

@ -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]

View File

@ -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()