Bash: update trust completions
The `docker trust` commands were moved out of experimental,
and the `docker trust view` command was changed to
`docker trust inspect --pretty`.
@@ -4713,9 +4713,9 @@ _docker_tag() {
_docker_trust() {
local subcommands="
+ inspect
revoke
sign
- view
"
__docker_subcommands "$subcommands" && return
@@ -4729,10 +4729,10 @@ _docker_trust() {
esac
}
-_docker_trust_revoke() {
+_docker_trust_inspect() {
case "$cur" in
-*)
- COMPREPLY=( $( compgen -W "--help --yes -y" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "--help --pretty" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)
@@ -4743,29 +4743,29 @@ _docker_trust_revoke() {
esac
}
-_docker_trust_sign() {
+_docker_trust_revoke() {
case "$cur" in
-*)
- COMPREPLY=( $( compgen -W "--help --local" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "--help --yes -y" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)
if [ "$cword" -eq "$counter" ]; then
- __docker_complete_images --force-tag --id
+ __docker_complete_images --repo --tag
fi
;;
esac
}
-_docker_trust_view() {
+_docker_trust_sign() {
case "$cur" in
-*)
- COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "--help --local" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)
if [ "$cword" -eq "$counter" ]; then
- __docker_complete_images --repo --tag
+ __docker_complete_images --force-tag --id
fi
;;
esac
@@ -4947,6 +4947,7 @@ _docker() {
stack
swarm
system
+ trust
volume
)
@@ -4999,7 +5000,6 @@ _docker() {
local experimental_commands=(
checkpoint
deploy
- trust
)
local commands=(${management_commands[*]} ${top_level_commands[*]})
