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.
@@ -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() {
