vmspawn: add shell completion for --coco
Fixes 4f8215add2.
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
committed by
Luca Boccassi
parent
74d392ed1b
commit
ebd70a53d4
@@ -41,6 +41,7 @@ _systemd_vmspawn() {
|
||||
[ARG]='--cpus --ram --vsock-cid -M --machine --uuid --private-users --background --set-credential --load-credential --forward-journal-max-use --forward-journal-keep-free --forward-journal-max-file-size --forward-journal-max-files --bind-volume'
|
||||
[IMAGE_FORMAT]='--image-format'
|
||||
[IMAGE_DISK_TYPE]='--image-disk-type'
|
||||
[COCO]='--coco'
|
||||
)
|
||||
|
||||
_init_completion || return
|
||||
@@ -68,6 +69,8 @@ _systemd_vmspawn() {
|
||||
comps='raw qcow2'
|
||||
elif __contains_word "$prev" ${OPTS[IMAGE_DISK_TYPE]}; then
|
||||
comps='virtio-blk virtio-scsi nvme'
|
||||
elif __contains_word "$prev" ${OPTS[COCO]}; then
|
||||
comps='no sev-snp'
|
||||
elif __contains_word "$prev" ${OPTS[ARG]}; then
|
||||
comps=''
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user