mirror of https://github.com/docker/cli.git
6ba7de3b5a
The "docker context show" command is intended to show the currently configured context. While the context that's configured may not be valid (e.g., in case an environment variable was set to configure the context, or if the context was removed from the filesystem), we should still be able to _show_ the context. This patch removes the context validation, and instead only shows the context. This can help in cases where the context is used to (e.g.) set the command- prompt, but the user removed the context. With this change, the context name can still be shown, but commands that _require_ the context will still fail. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
testdata | ||
cmd.go | ||
create.go | ||
create_test.go | ||
export-import_test.go | ||
export.go | ||
import.go | ||
inspect.go | ||
inspect_test.go | ||
list.go | ||
list_test.go | ||
options.go | ||
remove.go | ||
remove_test.go | ||
show.go | ||
show_test.go | ||
update.go | ||
update_test.go | ||
use.go | ||
use_test.go |