Merge pull request #10801 from ssc-services/zsh-completion_machinectl_clone

zsh-completion: complete available, not running machines for `clone`
This commit is contained in:
Yu Watanabe 2018-11-20 13:13:41 +09:00 committed by GitHub
commit 27b99f2912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -60,6 +60,8 @@ _available_machines() {
case $cmd in
list*|cancel-transfer|pull-tar|pull-raw)
msg="no options" ;;
clone)
_available_machines ;;
start)
_available_machines ;;
*)
@ -87,7 +89,7 @@ _arguments \
{-H+,--host=}'[Operate on remote host.]:userathost:_sd_hosts_or_user_at_host' \
{-M+,--machine=}'[Operate on local container.]:machine:_sd_machines' \
{-p+,--property=}'[Limit output to specified property.]:property:(Name Id Timestamp TimestampMonotonic Service Scope Leader Class State RootDirectory)' \
{-a,--all}'[Show all proerties.]' \
{-a,--all}'[Show all properties.]' \
{-q,--quiet}'[Suppress output.]' \
{-l,--full}'[Do not ellipsize cgroup members.]' \
'--kill-who=[Who to send signal to.]:killwho:(leader all)' \