1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

Move bash completion logic to new subcommand: info

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: bce3414931
Component: cli
This commit is contained in:
Harald Albers
2016-10-27 09:10:39 +02:00
committed by Tibor Vass
parent a8e80d61a0
commit e0d2f4d65e

View File

@@ -2171,17 +2171,7 @@ _docker_import() {
}
_docker_info() {
case "$prev" in
--format|-f)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--format -f --help" -- "$cur" ) )
;;
esac
_docker_system_info
}
_docker_inspect() {
@@ -3181,7 +3171,17 @@ _docker_system_events() {
}
_docker_system_info() {
_docker_info
case "$prev" in
--format|-f)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--format -f --help" -- "$cur" ) )
;;
esac
}
# TODO new command