diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-10-20 09:45:24 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-10-20 09:58:00 +0200 |
commit | 9e7cc6f0d26b217b86dabadf8072802f63b40256 (patch) | |
tree | 16017051a9d89c9afad200e9459d45b0065ac05a /shell-completion | |
parent | 4e9183059a5738cd19a8bee76189889087c0610e (diff) | |
download | systemd-9e7cc6f0d26b217b86dabadf8072802f63b40256.tar.gz |
shell-completion/zsh: rename helper for clarity
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/zsh/_machinectl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/shell-completion/zsh/_machinectl b/shell-completion/zsh/_machinectl index 4b4d044ec8..2b675bd77e 100644 --- a/shell-completion/zsh/_machinectl +++ b/shell-completion/zsh/_machinectl @@ -1,15 +1,15 @@ #compdef machinectl # SPDX-License-Identifier: LGPL-2.1-or-later -(( $+functions[__machinectl_get_machines] )) || - __machinectl_get_machines () { +(( $+functions[__machinectl_get_images] )) || + __machinectl_get_images () { machinectl --no-legend list-images | {while read -r a b; do echo $a; done;} } -(( $+functions[_machinectl_machines] )) || - _machinectl_machines() { +(( $+functions[_machinectl_images] )) || + _machinectl_images() { local -a _machines - _machines=("${(fo)$(__machinectl_get_machines)}") + _machines=("${(fo)$(__machinectl_get_images)}") typeset -U _machines if [[ -n "$_machines" ]]; then _describe 'machines' _machines @@ -64,9 +64,9 @@ list*|cancel-transfer|pull-tar|pull-raw) msg="no options" ;; clone) - _machinectl_machines ;; + _machinectl_images ;; start) - _machinectl_machines ;; + _machinectl_images ;; *) _sd_machines esac |