Merge pull request #1726 from albers/completion-network-ls-filter-dangling

Add bash completion for `network ls --filter dangling`
This commit is contained in:
Sebastiaan van Stijn 2019-03-21 10:53:24 +01:00 committed by GitHub
commit 62a9303232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -3333,6 +3333,10 @@ _docker_network_inspect() {
_docker_network_ls() {
local key=$(__docker_map_key_of_current_option '--filter|-f')
case "$key" in
dangling)
COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
return
;;
driver)
__docker_complete_plugins_bundled --cur "${cur##*=}" --type Network --add macvlan
return
@ -3357,7 +3361,7 @@ _docker_network_ls() {
case "$prev" in
--filter|-f)
COMPREPLY=( $( compgen -S = -W "driver id label name scope type" -- "$cur" ) )
COMPREPLY=( $( compgen -S = -W "dangling driver id label name scope type" -- "$cur" ) )
__docker_nospace
return
;;