Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ijaz Ahmad
ksonnet
Commits
0282f585
Commit
0282f585
authored
Jul 13, 2018
by
GuessWhoSamFoo
Browse files
Add examples for CLI ref --api-spec and --server for env set
Signed-off-by:
GuessWhoSamFoo
<
sfoohei@gmail.com
>
parent
11938d61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
docs/cli-reference/ks_env_set.md
docs/cli-reference/ks_env_set.md
+8
-1
pkg/clicmd/env_set.go
pkg/clicmd/env_set.go
+9
-2
No files found.
docs/cli-reference/ks_env_set.md
View file @
0282f585
...
...
@@ -25,9 +25,16 @@ ks env set <env-name> [flags]
### Examples
```
#Update the name of the environment 'us-west/staging'.
#
Update the name of the environment 'us-west/staging'.
# Updating the name will update the directory structure in 'environments/'.
ks env set us-west/staging --name=us-east/staging
# Setting k8s API version for an environment
ks env set us-west/staging --api-spec=version:v1.8.0
# Updating the server
ks env set us-west/staging --server=https://192.168.99.100:8443
```
### Options
...
...
pkg/clicmd/env_set.go
View file @
0282f585
...
...
@@ -45,9 +45,16 @@ directory structure in ` + "`environments/`" + `.
### Syntax
`
envSetExample
=
`#Update the name of the environment 'us-west/staging'.
envSetExample
=
`#
Update the name of the environment 'us-west/staging'.
# Updating the name will update the directory structure in 'environments/'.
ks env set us-west/staging --name=us-east/staging`
ks env set us-west/staging --name=us-east/staging
# Setting k8s API version for an environment
ks env set us-west/staging --api-spec=version:v1.8.0
# Updating the server
ks env set us-west/staging --server=https://192.168.99.100:8443
`
)
func
newEnvSetCmd
(
a
app
.
App
)
*
cobra
.
Command
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment