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:
commit
27b99f2912
|
@ -60,6 +60,8 @@ _available_machines() {
|
||||||
case $cmd in
|
case $cmd in
|
||||||
list*|cancel-transfer|pull-tar|pull-raw)
|
list*|cancel-transfer|pull-tar|pull-raw)
|
||||||
msg="no options" ;;
|
msg="no options" ;;
|
||||||
|
clone)
|
||||||
|
_available_machines ;;
|
||||||
start)
|
start)
|
||||||
_available_machines ;;
|
_available_machines ;;
|
||||||
*)
|
*)
|
||||||
|
@ -87,7 +89,7 @@ _arguments \
|
||||||
{-H+,--host=}'[Operate on remote host.]:userathost:_sd_hosts_or_user_at_host' \
|
{-H+,--host=}'[Operate on remote host.]:userathost:_sd_hosts_or_user_at_host' \
|
||||||
{-M+,--machine=}'[Operate on local container.]:machine:_sd_machines' \
|
{-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)' \
|
{-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.]' \
|
{-q,--quiet}'[Suppress output.]' \
|
||||||
{-l,--full}'[Do not ellipsize cgroup members.]' \
|
{-l,--full}'[Do not ellipsize cgroup members.]' \
|
||||||
'--kill-who=[Who to send signal to.]:killwho:(leader all)' \
|
'--kill-who=[Who to send signal to.]:killwho:(leader all)' \
|
||||||
|
|
Loading…
Reference in a new issue