Add bash completion for new prune commands
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
c5ceb0f945
commit
8099280cd8
1 changed files with 33 additions and 6 deletions
|
@ -1162,9 +1162,12 @@ _docker_container_port() {
|
|||
esac
|
||||
}
|
||||
|
||||
# TODO new command
|
||||
_docker_container_prune() {
|
||||
:
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--force -f --help" -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
_docker_container_ps() {
|
||||
|
@ -2070,9 +2073,12 @@ _docker_image_ls() {
|
|||
esac
|
||||
}
|
||||
|
||||
# TODO new command
|
||||
_docker_image_prune() {
|
||||
:
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--all -a --force -f --help" -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
_docker_image_pull() {
|
||||
|
@ -2404,6 +2410,14 @@ _docker_network_ls() {
|
|||
esac
|
||||
}
|
||||
|
||||
_docker_network_prune() {
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--force -f --help" -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
_docker_network_rm() {
|
||||
case "$cur" in
|
||||
-*)
|
||||
|
@ -2421,6 +2435,7 @@ _docker_network() {
|
|||
disconnect
|
||||
inspect
|
||||
ls
|
||||
prune
|
||||
rm
|
||||
"
|
||||
__docker_subcommands "$subcommands" && return
|
||||
|
@ -3209,9 +3224,12 @@ _docker_system_info() {
|
|||
esac
|
||||
}
|
||||
|
||||
# TODO new command
|
||||
_docker_system_prune() {
|
||||
:
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--all -a --force -f --help" -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
|
@ -3309,6 +3327,14 @@ _docker_volume_ls() {
|
|||
esac
|
||||
}
|
||||
|
||||
_docker_volume_prune() {
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--force -f --help" -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
_docker_volume_rm() {
|
||||
case "$cur" in
|
||||
-*)
|
||||
|
@ -3325,6 +3351,7 @@ _docker_volume() {
|
|||
create
|
||||
inspect
|
||||
ls
|
||||
prune
|
||||
rm
|
||||
"
|
||||
__docker_subcommands "$subcommands" && return
|
||||
|
|
Loading…
Add table
Reference in a new issue