Merge pull request #931 from spartacus06/update-completion-machinectl

Update shell completion for machinectl
This commit is contained in:
Lennart Poettering 2015-08-16 19:58:49 +02:00
commit 7b0991c617
1 changed files with 4 additions and 3 deletions

View File

@ -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