]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash completion: add missing machinectl parameters
authorLuca Boccassi <luca.boccassi@gmail.com>
Tue, 17 Feb 2026 21:50:59 +0000 (21:50 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 18 Feb 2026 10:40:12 +0000 (10:40 +0000)
shell-completion/bash/machinectl

index 25de8c5cc5389c3758bd40f0a4818fc83406adb5..78319d91a419cae9106a7b73ef2e713ed13c464e 100644 (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