bash completion: add --template to nspawn
This commit is contained in:
parent
219e0ea74a
commit
6d94d993c7
|
@ -60,14 +60,14 @@ _systemd_nspawn() {
|
||||||
[ARG]='-D --directory -u --user --uuid --capability --drop-capability --link-journal --bind --bind-ro -M --machine
|
[ARG]='-D --directory -u --user --uuid --capability --drop-capability --link-journal --bind --bind-ro -M --machine
|
||||||
-S --slice --setenv -Z --selinux-context -L --selinux-apifs-context --register --network-interface --network-bridge
|
-S --slice --setenv -Z --selinux-context -L --selinux-apifs-context --register --network-interface --network-bridge
|
||||||
--personality -i --image --tmpfs --volatile
|
--personality -i --image --tmpfs --volatile
|
||||||
--network-macvlan --kill-signal'
|
--network-macvlan --kill-signal --template'
|
||||||
)
|
)
|
||||||
|
|
||||||
_init_completion || return
|
_init_completion || return
|
||||||
|
|
||||||
if __contains_word "$prev" ${OPTS[ARG]}; then
|
if __contains_word "$prev" ${OPTS[ARG]}; then
|
||||||
case $prev in
|
case $prev in
|
||||||
--directory|-D)
|
--directory|-D|--template)
|
||||||
compopt -o nospace
|
compopt -o nospace
|
||||||
comps=$(compgen -S/ -A directory -- "$cur" )
|
comps=$(compgen -S/ -A directory -- "$cur" )
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue