mirror of https://github.com/docker/cli.git
Merge pull request #944 from thaJeztah/update-completion-scripts
Bash: update trust completions
This commit is contained in:
commit
6d7c23a6b4
|
@ -4713,9 +4713,9 @@ _docker_tag() {
|
||||||
|
|
||||||
_docker_trust() {
|
_docker_trust() {
|
||||||
local subcommands="
|
local subcommands="
|
||||||
|
inspect
|
||||||
revoke
|
revoke
|
||||||
sign
|
sign
|
||||||
view
|
|
||||||
"
|
"
|
||||||
__docker_subcommands "$subcommands" && return
|
__docker_subcommands "$subcommands" && return
|
||||||
|
|
||||||
|
@ -4729,6 +4729,20 @@ _docker_trust() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_docker_trust_inspect() {
|
||||||
|
case "$cur" in
|
||||||
|
-*)
|
||||||
|
COMPREPLY=( $( compgen -W "--help --pretty" -- "$cur" ) )
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
local counter=$(__docker_pos_first_nonflag)
|
||||||
|
if [ "$cword" -eq "$counter" ]; then
|
||||||
|
__docker_complete_images --repo --tag
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
_docker_trust_revoke() {
|
_docker_trust_revoke() {
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
|
@ -4757,20 +4771,6 @@ _docker_trust_sign() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker_trust_view() {
|
|
||||||
case "$cur" in
|
|
||||||
-*)
|
|
||||||
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
local counter=$(__docker_pos_first_nonflag)
|
|
||||||
if [ "$cword" -eq "$counter" ]; then
|
|
||||||
__docker_complete_images --repo --tag
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
_docker_unpause() {
|
_docker_unpause() {
|
||||||
_docker_container_unpause
|
_docker_container_unpause
|
||||||
|
@ -4947,6 +4947,7 @@ _docker() {
|
||||||
stack
|
stack
|
||||||
swarm
|
swarm
|
||||||
system
|
system
|
||||||
|
trust
|
||||||
volume
|
volume
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -4999,7 +5000,6 @@ _docker() {
|
||||||
local experimental_commands=(
|
local experimental_commands=(
|
||||||
checkpoint
|
checkpoint
|
||||||
deploy
|
deploy
|
||||||
trust
|
|
||||||
)
|
)
|
||||||
|
|
||||||
local commands=(${management_commands[*]} ${top_level_commands[*]})
|
local commands=(${management_commands[*]} ${top_level_commands[*]})
|
||||||
|
|
Loading…
Reference in New Issue