Skip to content

Commit

Permalink
Merge pull request #18 from jfrederickson/fix/command-docs
Browse files Browse the repository at this point in the history
Correct docs for lock/unlock/validate flags
  • Loading branch information
hagaibarel authored Feb 20, 2019
2 parents dc5d3bc + 9caf900 commit 5ebdec2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/commands/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Usage:
Flags:
--kube-context string name of the kubeconfig context to use. Overrides $ORCA_KUBE_CONTEXT
-n, --name string name of environment (namespace) to delete. Overrides $ORCA_NAME
-n, --name string name of environment (namespace) to lock. Overrides $ORCA_NAME
```

### Unlock env
Expand All @@ -167,7 +167,7 @@ Usage:
Flags:
--kube-context string name of the kubeconfig context to use. Overrides $ORCA_KUBE_CONTEXT
-n, --name string name of environment (namespace) to delete. Overrides $ORCA_NAME
-n, --name string name of environment (namespace) to unlock. Overrides $ORCA_NAME
```

### Validate env
Expand All @@ -179,7 +179,7 @@ Usage:
Flags:
--kube-context string name of the kubeconfig context to use. Overrides $ORCA_KUBE_CONTEXT
-n, --name string name of environment (namespace) to delete. Overrides $ORCA_NAME
-n, --name string name of environment (namespace) to validate. Overrides $ORCA_NAME
```

### Create resource
Expand Down
6 changes: 3 additions & 3 deletions pkg/orca/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ func NewLockEnvCmd(out io.Writer) *cobra.Command {

f := cmd.Flags()

f.StringVarP(&e.name, "name", "n", os.Getenv("ORCA_NAME"), "name of environment (namespace) to delete. Overrides $ORCA_NAME")
f.StringVarP(&e.name, "name", "n", os.Getenv("ORCA_NAME"), "name of environment (namespace) to lock. Overrides $ORCA_NAME")
f.StringVar(&e.kubeContext, "kube-context", os.Getenv("ORCA_KUBE_CONTEXT"), "name of the kubeconfig context to use. Overrides $ORCA_KUBE_CONTEXT")

return cmd
Expand Down Expand Up @@ -460,7 +460,7 @@ func NewUnlockEnvCmd(out io.Writer) *cobra.Command {

f := cmd.Flags()

f.StringVarP(&e.name, "name", "n", os.Getenv("ORCA_NAME"), "name of environment (namespace) to delete. Overrides $ORCA_NAME")
f.StringVarP(&e.name, "name", "n", os.Getenv("ORCA_NAME"), "name of environment (namespace) to unlock. Overrides $ORCA_NAME")
f.StringVar(&e.kubeContext, "kube-context", os.Getenv("ORCA_KUBE_CONTEXT"), "name of the kubeconfig context to use. Overrides $ORCA_KUBE_CONTEXT")

return cmd
Expand Down Expand Up @@ -574,7 +574,7 @@ func NewValidateEnvCmd(out io.Writer) *cobra.Command {

f := cmd.Flags()

f.StringVarP(&e.name, "name", "n", os.Getenv("ORCA_NAME"), "name of environment (namespace) to delete. Overrides $ORCA_NAME")
f.StringVarP(&e.name, "name", "n", os.Getenv("ORCA_NAME"), "name of environment (namespace) to validate. Overrides $ORCA_NAME")
f.StringVar(&e.kubeContext, "kube-context", os.Getenv("ORCA_KUBE_CONTEXT"), "name of the kubeconfig context to use. Overrides $ORCA_KUBE_CONTEXT")

return cmd
Expand Down

0 comments on commit 5ebdec2

Please sign in to comment.