mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Move bash completion logic to new subcommand: info
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
1de8e84a5c
commit
a3efa05d3a
1 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue