mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Move bash completion logic to new subcommand: pause
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
a91fb558d2
commit
27abd03059
1 changed files with 12 additions and 12 deletions
|
@ -1212,7 +1212,17 @@ _docker_container_ls() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker_container_pause() {
|
_docker_container_pause() {
|
||||||
_docker_pause
|
case "$cur" in
|
||||||
|
-*)
|
||||||
|
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
local counter=$(__docker_pos_first_nonflag)
|
||||||
|
if [ $cword -eq $counter ]; then
|
||||||
|
__docker_complete_containers_running
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker_container_port() {
|
_docker_container_port() {
|
||||||
|
@ -2439,17 +2449,7 @@ _docker_node_update() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker_pause() {
|
_docker_pause() {
|
||||||
case "$cur" in
|
_docker_container_pause
|
||||||
-*)
|
|
||||||
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
local counter=$(__docker_pos_first_nonflag)
|
|
||||||
if [ $cword -eq $counter ]; then
|
|
||||||
__docker_complete_containers_running
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker_port() {
|
_docker_port() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue