mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Fix command examples indentation
This commit is contained in:
parent
ba0071a73a
commit
b1d9b4b857
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user