chumkid 02d2fc7e4a Show the context name and current context using get-context command
The command "airshipctl config get-context" will display the name of the contexts as well as the current context name.

Relates-To: #475
Change-Id: I8234d74f6b98869e27e4974a54b68230d8be8565
2021-05-19 13:42:22 +05:30

25 lines
542 B
Plaintext

Error: missing configuration: context with name 'contextMissing'
Usage:
get-context CONTEXT_NAME [flags]
Aliases:
get-context, get-contexts
Examples:
# List all contexts
airshipctl config get-contexts
# Display the current context
airshipctl config get-context --current
# Display a specific context
airshipctl config get-context exampleContext
Flags:
--current get the current context
--format yaml choose between yaml or `table`, default is `yaml` (default "yaml")
-h, --help help for get-context