Add bash completion for docker {node rm,swarm leave} -f
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
f67d4b897a
commit
cc0c14aab7
1 changed files with 2 additions and 2 deletions
|
@ -2834,7 +2834,7 @@ _docker_swarm_join-token() {
|
|||
_docker_swarm_leave() {
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--force --help" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "--force -f --help" -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
@ -2950,7 +2950,7 @@ _docker_node_remove() {
|
|||
_docker_node_rm() {
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--force --help" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "--force -f --help" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
__docker_complete_nodes
|
||||
|
|
Loading…
Reference in a new issue