shell-completion: catch up with cryptenroll command line

This commit is contained in:
Lennart Poettering
2026-06-27 17:28:39 +02:00
parent 2d691049ae
commit 65079c0a39
3 changed files with 86 additions and 1 deletions
+11 -1
View File
@@ -43,10 +43,14 @@ _systemd_cryptenroll() {
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} words cword
local -A OPTS=(
[STANDALONE]='-h --help --version
--password --recovery-key --list-devices'
--password --recovery-key --list-devices
--unlock-empty --unlock-headless --firstboot'
[ARG]='--unlock-key-file
--unlock-fido2-device
--unlock-tpm2-device
--prompt-suppress
--chrome
--mute-console
--pkcs11-token-uri
--fido2-credential-algorithm
--fido2-device
@@ -99,6 +103,12 @@ _systemd_cryptenroll() {
--wipe-slot)
comps='all empty password recovery pkcs11 fido2 tpm2'
;;
--prompt-suppress)
comps='password recovery pkcs11 fido2 tpm2'
;;
--chrome|--mute-console)
comps='yes no'
;;
esac
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
return 0