bash completion: add missing machinectl parameters

This commit is contained in:
Luca Boccassi
2026-02-18 10:40:12 +00:00
parent 3f618b8851
commit 28846f4e62
+7 -4
View File
@@ -38,9 +38,9 @@ _machinectl() {
local -A OPTS=(
[STANDALONE]='--all -a -l --full --help -h --no-ask-password --no-legend --no-pager --version --value
--mkdir --read-only --force -q --quiet --system --user'
[ARG]='--host -H --kill-whom -M --machine --property -p --signal -s --uid -E --setenv -n --lines
-o --output --verify --format --max-addresses'
--mkdir --read-only --force -q --quiet --system --user --now -V'
[ARG]='--host -H --kill-whom -M --machine --property -p -P --signal -s --uid -E --setenv -n --lines
-o --output --verify --format --max-addresses --runner'
)
local -A VERBS=(
@@ -85,7 +85,7 @@ _machinectl() {
--machine|-M)
comps=$( __get_machines $mode )
;;
--property|-p)
--property|-p|-P)
comps=''
;;
--output|-o)
@@ -97,6 +97,9 @@ _machinectl() {
--format)
comps='uncompressed xz gzip bzip2 zstd'
;;
--runner)
comps='nspawn vmspawn'
;;
esac
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
return 0