mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-08-11 15:01:16 +02:00
41086: Update librt completions
This commit is contained in:
parent
d14686860d
commit
eacb87988e
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
||||||
2017-05-22 Peter Stephenson <p.stephenson@samsung.com>
|
2017-05-22 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
|
* Marko Myllenen: 41086: Completion/Unix/Command/_libvirt:
|
||||||
|
update completion.
|
||||||
|
|
||||||
* Marko Myllenen: 41085: Completion/Unix/Command/_openstack:
|
* Marko Myllenen: 41085: Completion/Unix/Command/_openstack:
|
||||||
update completion.
|
update completion.
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ typeset -A dom_opts
|
||||||
dom_opts=(
|
dom_opts=(
|
||||||
console " "
|
console " "
|
||||||
destroy " "
|
destroy " "
|
||||||
|
edit " "
|
||||||
managedsave " "
|
managedsave " "
|
||||||
reboot " "
|
reboot " "
|
||||||
reset " "
|
reset " "
|
||||||
|
@ -95,7 +96,7 @@ case $service in
|
||||||
'(- *)'{-h,--help}'[print help information and exit]' \
|
'(- *)'{-h,--help}'[print help information and exit]' \
|
||||||
'(- *)'{-v,--version}'[print version information and exit]' \
|
'(- *)'{-v,--version}'[print version information and exit]' \
|
||||||
'(- *)'{-q,--quiet}'[quiet mode]' \
|
'(- *)'{-q,--quiet}'[quiet mode]' \
|
||||||
'1:hv-type:(qemu lxc)' && return
|
'1:hv-type:(qemu lxc bhyve)' && return
|
||||||
;;
|
;;
|
||||||
virt-pki-validate)
|
virt-pki-validate)
|
||||||
_arguments -A "-*" -S \
|
_arguments -A "-*" -S \
|
||||||
|
@ -197,7 +198,7 @@ case $state in
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
# Allow passing domain without --domain with few of the most used commands
|
# Allow passing domain without --domain with few of the most used commands
|
||||||
if [[ $cmd == (destroy|reboot|reset|start|shutdown) ]]; then
|
if [[ $cmd == (destroy|edit|reboot|reset|start|shutdown) ]]; then
|
||||||
if [[ $words[CURRENT-1] == $cmd ]]; then
|
if [[ $words[CURRENT-1] == $cmd ]]; then
|
||||||
values=( $(_call_program domains "noglob virsh $conn_opt list ${dom_opts[$cmd]:-"--all"} --name") )
|
values=( $(_call_program domains "noglob virsh $conn_opt list ${dom_opts[$cmd]:-"--all"} --name") )
|
||||||
[[ -n $values ]] && _wanted domains expl domain compadd ${=values} && return 0
|
[[ -n $values ]] && _wanted domains expl domain compadd ${=values} && return 0
|
||||||
|
|
Loading…
Reference in a new issue