Merge pull request #1727 from albers/completion-builder-prune

Add bash completion for `builder prune`
This commit is contained in:
Sebastiaan van Stijn 2019-03-21 12:08:07 +01:00 committed by GitHub
commit 93f34dc097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 36 additions and 0 deletions

View File

@ -1202,6 +1202,41 @@ _docker_build() {
} }
_docker_builder() {
local subcommands="
prune
"
__docker_subcommands "$subcommands" && return
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
;;
*)
COMPREPLY=( $( compgen -W "$subcommands" -- "$cur" ) )
;;
esac
}
_docker_builder_prune() {
case "$prev" in
--filter)
COMPREPLY=( $( compgen -S = -W "description id inuse parent private shared type until unused-for" -- "$cur" ) )
__docker_nospace
return
;;
--keep-storage)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--all -a --filter --force -f --help --keep-storage" -- "$cur" ) )
;;
esac
}
_docker_checkpoint() { _docker_checkpoint() {
local subcommands=" local subcommands="
create create
@ -5355,6 +5390,7 @@ _docker() {
shopt -s extglob shopt -s extglob
local management_commands=( local management_commands=(
builder
config config
container container
context context