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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user