Refactor alias delegation in bash completion for `secret rm|remove`

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>
This commit is contained in:
Harald Albers 2017-07-03 16:55:40 +02:00
parent 211bd55ae7
commit d585e554d5
1 changed files with 4 additions and 4 deletions

View File

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