mirror of https://github.com/docker/cli.git
Add bash completion for `context create --from`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
dea0aa9d71
commit
b55992afc6
|
@ -2342,11 +2342,15 @@ _docker_context_create() {
|
||||||
--description|--docker|--kubernetes)
|
--description|--docker|--kubernetes)
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--from)
|
||||||
|
__docker_complete_contexts
|
||||||
|
return
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--default-stack-orchestrator --description --docker --help --kubernetes" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--default-stack-orchestrator --description --docker --from --help --kubernetes" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue