mirror of https://github.com/docker/compose.git
Merge pull request #3516 from albers/completion-rm--all
remove command completion for `docker-compose rm --a`
This commit is contained in:
commit
6e2d1eb80e
|
@ -325,7 +325,7 @@ _docker_compose_restart() {
|
|||
_docker_compose_rm() {
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--all -a --force -f --help -v" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "--force -f --help -v" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
__docker_compose_services_stopped
|
||||
|
|
|
@ -281,7 +281,6 @@ __docker-compose_subcommand() {
|
|||
(rm)
|
||||
_arguments \
|
||||
$opts_help \
|
||||
'(-a --all)'{-a,--all}"[Also remove one-off containers]" \
|
||||
'(-f --force)'{-f,--force}"[Don't ask to confirm removal]" \
|
||||
'-v[Remove volumes associated with containers]' \
|
||||
'*:stopped services:__docker-compose_stoppedservices' && ret=0
|
||||
|
|
Loading…
Reference in New Issue