mirror of https://github.com/docker/cli.git
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:
parent
211bd55ae7
commit
d585e554d5
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue