mirror of https://github.com/docker/cli.git
Added events filter scope zsh completion
Signed-off-by: Paweł Szczekutowicz <pszczekutowicz@gmail.com>
This commit is contained in:
parent
c922ea2f45
commit
13db1bc95f
|
@ -431,7 +431,7 @@ __docker_complete_events_filter() {
|
||||||
integer ret=1
|
integer ret=1
|
||||||
declare -a opts
|
declare -a opts
|
||||||
|
|
||||||
opts=('container' 'daemon' 'event' 'image' 'label' 'network' 'type' 'volume')
|
opts=('container' 'daemon' 'event' 'image' 'label' 'network' 'scope' 'type' 'volume')
|
||||||
|
|
||||||
if compset -P '*='; then
|
if compset -P '*='; then
|
||||||
case "${${words[-1]%=*}#*=}" in
|
case "${${words[-1]%=*}#*=}" in
|
||||||
|
@ -461,6 +461,11 @@ __docker_complete_events_filter() {
|
||||||
(network)
|
(network)
|
||||||
__docker_complete_networks && ret=0
|
__docker_complete_networks && ret=0
|
||||||
;;
|
;;
|
||||||
|
(scope)
|
||||||
|
local -a scope_opts
|
||||||
|
scope_opts=('local' 'swarm')
|
||||||
|
_describe -t scope-filter-opts "scope filter options" scope_opts && ret=0
|
||||||
|
;;
|
||||||
(type)
|
(type)
|
||||||
local -a type_opts
|
local -a type_opts
|
||||||
type_opts=('container' 'daemon' 'image' 'network' 'volume')
|
type_opts=('container' 'daemon' 'image' 'network' 'volume')
|
||||||
|
|
Loading…
Reference in New Issue