mirror of
https://github.com/systemd/systemd.git
synced 2026-11-06 05:17:24 +00:00
shell completion: add kernel-identify/inspect verbs for bootctl
Follow-up fora05255981bFollow-up for3e0a3a0259(cherry picked from commit6a6d4c3f3c) (cherry picked from commit769997ee17)
This commit is contained in:
1 parent
6fc9646401
commit
1cd0325097
1 file changed
+4
@@ -71,6 +71,7 @@ _bootctl() {
|
||||
[STANDALONE]='help status install update remove is-installed random-seed systemd-efi-options list set-timeout set-timeout-oneshot cleanup'
|
||||
[BOOTENTRY]='set-default set-oneshot unlink'
|
||||
[BOOLEAN]='reboot-to-firmware'
|
||||
[FILE]='kernel-identify kernel-inspect'
|
||||
)
|
||||
|
||||
for ((i=0; i < COMP_CWORD; i++)); do
|
||||
@@ -101,6 +102,9 @@ _bootctl() {
|
||||
fi
|
||||
elif __contains_word "$verb" ${VERBS[BOOLEAN]}; then
|
||||
comps="yes no"
|
||||
elif __contains_word "$verb" ${VERBS[FILE]}; then
|
||||
comps=$( compgen -A file -- "$cur" )
|
||||
compopt -o filenames
|
||||
fi
|
||||
|
||||
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
|
||||
|
||||
Reference in new issue
Block a user