diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-16 19:58:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-16 19:58:49 +0200 |
commit | 7b0991c61773b1074ed90cc1037ac14dee1fd043 (patch) | |
tree | 3251f32d7b49c695bcccf47df0b3ccab1f187446 /shell-completion | |
parent | e6a26d8c972d45a0927ad0b7c654c830daa2243e (diff) | |
parent | 4f8f4c310c5b48910470211d3525634e2a3743ff (diff) |
Merge pull request #931 from spartacus06/update-completion-machinectl
Update shell completion for machinectl
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/machinectl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/shell-completion/bash/machinectl b/shell-completion/bash/machinectl index 3789492d72..0d09258a0b 100644 --- a/shell-completion/bash/machinectl +++ b/shell-completion/bash/machinectl @@ -26,7 +26,8 @@ __contains_word() { __get_machines() { local a b - machinectl list --no-legend --no-pager | { while read a b; do echo " $a"; done; }; + (machinectl list-images --no-legend --no-pager; machinectl list --no-legend --no-pager) | \ + { while read a b; do echo " $a"; done; } | sort -u; } _machinectl() { @@ -39,8 +40,8 @@ _machinectl() { ) local -A VERBS=( - [STANDALONE]='list' - [MACHINES]='status show terminate kill reboot login' + [STANDALONE]='list list-images' + [MACHINES]='status show start login enable disable poweroff reboot terminate kill copy-to copy-from image-status show-image clone rename read-only remove set-limit list-transfers cancel-transfer' ) _init_completion || return |