Skip to content

Commit

Permalink
Refactor alias delegation in bash completion for secret rm|remove
Browse files Browse the repository at this point in the history
The completion logic should be implemented in the documented subcommands
(ls, rm) and delegated to from the aliases (list, remove).
For the rm|remove pair, this was implemented vice versa.

Signed-off-by: Harald Albers <github@albersweb.de>
  • Loading branch information
albers committed Jul 7, 2017
1 parent 211bd55 commit d585e55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/completion/bash/docker
Original file line number Diff line number Diff line change
Expand Up @@ -4195,6 +4195,10 @@ _docker_secret_ls() {
}

_docker_secret_remove() {
_docker_secret_rm
}

_docker_secret_rm() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
Expand All @@ -4205,10 +4209,6 @@ _docker_secret_remove() {
esac
}

_docker_secret_rm() {
_docker_secret_remove
}



_docker_search() {
Expand Down

0 comments on commit d585e55

Please sign in to comment.