mirror of https://github.com/docker/cli.git
Merge pull request #1727 from albers/completion-builder-prune
Add bash completion for `builder prune`
This commit is contained in:
commit
93f34dc097
|
@ -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() {
|
||||
local subcommands="
|
||||
create
|
||||
|
@ -5355,6 +5390,7 @@ _docker() {
|
|||
shopt -s extglob
|
||||
|
||||
local management_commands=(
|
||||
builder
|
||||
config
|
||||
container
|
||||
context
|
||||
|
|
Loading…
Reference in New Issue