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
|
[ARG]='--root
|
||||||
--json
|
--json
|
||||||
--noexec
|
--noexec
|
||||||
--image-policy'
|
--image-policy
|
||||||
|
--mutable'
|
||||||
)
|
)
|
||||||
|
|
||||||
local -A VERBS=(
|
local -A VERBS=(
|
||||||
@@ -59,11 +60,14 @@ _systemd-confext() {
|
|||||||
comps='pretty short off'
|
comps='pretty short off'
|
||||||
;;
|
;;
|
||||||
--noexec)
|
--noexec)
|
||||||
comps='false true'
|
comps='no yes'
|
||||||
;;
|
;;
|
||||||
--image-policy)
|
--image-policy)
|
||||||
comps=''
|
comps=''
|
||||||
;;
|
;;
|
||||||
|
--mutable)
|
||||||
|
comps=$( systemd-confext --no-legend --mutable=help 2>/dev/null; echo help )
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
|
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
|
||||||
return 0
|
return 0
|
||||||
|
@@ -31,9 +31,13 @@ _systemd-sysext() {
|
|||||||
[STANDALONE]='-h --help --version
|
[STANDALONE]='-h --help --version
|
||||||
--no-pager
|
--no-pager
|
||||||
--no-legend
|
--no-legend
|
||||||
|
--no-reload
|
||||||
--force'
|
--force'
|
||||||
[ARG]='--root
|
[ARG]='--root
|
||||||
--json'
|
--json
|
||||||
|
--noexec
|
||||||
|
--image-policy
|
||||||
|
--mutable'
|
||||||
)
|
)
|
||||||
|
|
||||||
local -A VERBS=(
|
local -A VERBS=(
|
||||||
@@ -55,6 +59,15 @@ _systemd-sysext() {
|
|||||||
--json)
|
--json)
|
||||||
comps='pretty short off'
|
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
|
esac
|
||||||
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
|
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
|
||||||
return 0
|
return 0
|
||||||
|
Reference in New Issue
Block a user