a480527808
Each of these include an option for --current-context that set or retrieves the curret context This patchset mainly creates the cmd/config and pkg/config require additions Also includes a fync getCurrentContext(<CLUSTERTYPE>) in the config pkg that other modules should rely on. Introduces new ErrMissingConfig and ErrConfigFailed types been used by set-context, will decimate through get/ and set/get cluster after this is reviewed. Change-Id: I501483a9db99f33f860eaf329a65bb0209b2aaff
18 lines
642 B
Plaintext
18 lines
642 B
Plaintext
Modify airshipctl config files using subcommands
|
|
like "airshipctl config set-current-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
|
|
help Help about any command
|
|
set-cluster Sets a cluster entry in the airshipctl config
|
|
set-context Sets a context entry or updates current-context in the airshipctl config
|
|
|
|
Flags:
|
|
-h, --help help for config
|
|
|
|
Use "config [command] --help" for more information about a command.
|