Add bash completion for new docker system command family

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 5290f748789474d9c826e84342f59e6b43e96c4e
Component: engine
This commit is contained in:
Harald Albers
2016-10-27 09:05:21 +02:00
parent a12095fbb1
commit f88d0a2192

View File

@ -3151,6 +3151,45 @@ _docker_stop() {
_docker_container_stop
}
_docker_system() {
local subcommands="
df
events
info
prune
"
__docker_subcommands "$subcommands $aliases" && return
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
;;
*)
COMPREPLY=( $( compgen -W "$subcommands" -- "$cur" ) )
;;
esac
}
# TODO new command
_docker_system_df() {
:
}
_docker_system_events() {
_docker_events
}
_docker_system_info() {
_docker_info
}
# TODO new command
_docker_system_prune() {
:
}
_docker_tag() {
_docker_image_tag
}
@ -3325,6 +3364,7 @@ _docker() {
stats
stop
swarm
system
tag
top
unpause