airshipctl/cmd/config/testdata/TestConfigGoldenOutput/config-cmd-with-defaults.golden
Drew Walters a437caa141 [#56] Add use-context subcommand
Currently, airshipctl users switch their current context by modifying
the airshipctl config file or executing airshipctl config set-context
[NAME]. This change introduces the use-context subcommand, which
replaces the current behavior of using set-context without flags. After
this change, set-context will only be used to modify contexts.

Change-Id: If3980138a0abeeb6c59c07615b5373654073610a
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-02-26 10:35:13 -06:00

22 lines
909 B
Plaintext

Modify airshipctl config files using subcommands
like "airshipctl config set-context my-context"
Usage:
config [command]
Available Commands:
get-cluster Display a specific cluster or all defined clusters if no name is provided
get-context Display a specific context, the current-context or all defined contexts if no name is provided
get-credentials Gets a user entry from the airshipctl config
help Help about any command
init Generate initial configuration files for airshipctl
set-cluster Sets a cluster entry in the airshipctl config
set-context Switch to a new context or update context values in the airshipctl config
set-credentials Sets a user entry in the airshipctl config
use-context Switch to a different airshipctl context.
Flags:
-h, --help help for config
Use "config [command] --help" for more information about a command.