1
0
mirror of https://github.com/systemd/systemd synced 2025-10-05 16:03:15 +02:00

bash-completion: update systemd-sysext, systemd-confext

This commit is contained in:
Pascal Bachor
2025-09-26 20:20:49 +02:00
parent b85887ead1
commit 9b5f1a6112
2 changed files with 20 additions and 3 deletions

View 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

View 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