mirror of https://github.com/docker/cli.git
some additions for bash completion
Signed-off-by: Wayne Cheng <zhengwei@tiduyun.com>
This commit is contained in:
parent
6fc8567ce6
commit
c2919580b6
|
@ -4138,15 +4138,15 @@ _docker_manifest() {
|
||||||
annotate
|
annotate
|
||||||
create
|
create
|
||||||
inspect
|
inspect
|
||||||
|
ls
|
||||||
push
|
push
|
||||||
rm
|
rm
|
||||||
ls
|
|
||||||
"
|
"
|
||||||
|
|
||||||
local aliases="
|
local aliases="
|
||||||
list
|
list
|
||||||
"
|
"
|
||||||
__docker_subcommands "$subcommands" && return
|
__docker_subcommands "$subcommands $aliases" && return
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
|
@ -4254,7 +4254,17 @@ _docker_manifest_rm() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_docker_manifest_list() {
|
||||||
|
_docker_manifest_ls
|
||||||
|
}
|
||||||
|
|
||||||
_docker_manifest_ls() {
|
_docker_manifest_ls() {
|
||||||
|
case "$prev" in
|
||||||
|
--format)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--format --help --quiet -q" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--format --help --quiet -q" -- "$cur" ) )
|
||||||
|
|
Loading…
Reference in New Issue