]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: update systemd-sysext, systemd-confext 38948/head
authorPascal Bachor <bachorp@users.noreply.github.com>
Fri, 26 Sep 2025 18:20:49 +0000 (20:20 +0200)
committerPascal Bachor <bachorp@users.noreply.github.com>
Fri, 26 Sep 2025 18:20:49 +0000 (20:20 +0200)
shell-completion/bash/systemd-confext
shell-completion/bash/systemd-sysext

index d36f70fa094df2d791046551b508cd05072e26cd..16dbdf06bbe66912cd31b21e534d346e643672f7 100644 (file)
@@ -36,7 +36,8 @@ _systemd-confext() {
         [ARG]='--root
                --json
                --noexec
-               --image-policy'
+               --image-policy
+               --mutable'
     )
 
     local -A VERBS=(
@@ -59,11 +60,14 @@ _systemd-confext() {
                 comps='pretty short off'
                 ;;
             --noexec)
-                comps='false true'
+                comps='no yes'
                 ;;
             --image-policy)
                 comps=''
                 ;;
+            --mutable)
+                comps=$( systemd-confext --no-legend --mutable=help 2>/dev/null; echo help )
+                ;;
         esac
         COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
         return 0
index 5c15f076a878fec43252803d92a9c19f4e7c7a8c..c605237ed6773b0ca4b53a2011a7e38d6d08adc3 100644 (file)
@@ -31,9 +31,13 @@ _systemd-sysext() {
         [STANDALONE]='-h --help --version
                      --no-pager
                      --no-legend
+                     --no-reload
                      --force'
         [ARG]='--root
-               --json'
+               --json
+               --noexec
+               --image-policy
+               --mutable'
     )
 
     local -A VERBS=(
@@ -55,6 +59,15 @@ _systemd-sysext() {
             --json)
                 comps='pretty short off'
                 ;;
+            --noexec)
+                comps='no yes'
+                ;;
+            --image-policy)
+                comps=''
+                ;;
+            --mutable)
+                comps=$( systemd-sysext --no-legend --mutable=help 2>/dev/null; echo help )
+                ;;
         esac
         COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
         return 0