From 86b4188d5ef7fe284fa9f8c92f6e538c3e565834 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 10 Jan 2018 23:20:45 +0900 Subject: bash-completion: nspawn: add missing options --- shell-completion/bash/systemd-nspawn | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'shell-completion') diff --git a/shell-completion/bash/systemd-nspawn b/shell-completion/bash/systemd-nspawn index 4f2fbef84f..660972d9f1 100644 --- a/shell-completion/bash/systemd-nspawn +++ b/shell-completion/bash/systemd-nspawn @@ -57,12 +57,13 @@ _systemd_nspawn() { local i verb comps local -A OPTS=( - [STANDALONE]='-h --help --version --private-network -b --boot --read-only -q --quiet --share-system --keep-unit --network-veth -j' - [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 - --personality -i --image --tmpfs --volatile - --network-macvlan --kill-signal --template - --notify-ready' + [STANDALONE]='-h --help --version --private-network -b --boot --read-only -q --quiet --share-system --keep-unit -n --network-veth + -j -x --ephemeral -a --as-pid2 --private-users-chown -U' + [ARG]='-D --directory -u --user --uuid --capability --drop-capability --link-journal --bind --bind-ro -M --machine + -S --slice -E --setenv -Z --selinux-context -L --selinux-apifs-context --register --network-interface --network-bridge + --personality -i --image --tmpfs --volatile --network-macvlan --kill-signal --template --notify-ready --root-hash + --chdir --pivot-root --property --private-users --network-namespace-path --network-ipvlan --network-veth-extra + --network-zone -p --port --system-call-filter --overlay --overlay-ro --settings' ) _init_completion || return @@ -76,7 +77,7 @@ _systemd_nspawn() { --user|-u) comps=$( __get_users ) ;; - --uuid) + --uuid|--root-hash) comps='' ;; --capability) @@ -106,7 +107,7 @@ _systemd_nspawn() { --slice|-S) comps=$( __get_slices ) ;; - --setenv) + --setenv|-E) comps=$( __get_env ) ;; --selinux-context|-Z) @@ -143,7 +144,15 @@ _systemd_nspawn() { ;; --notify-ready) comps='yes no' - return + ;; + --private-users) + comps='yes no pick' + ;; + --network-namespace-path) + comps=$( compgen -A file -- "$cur" ) + ;; + --settings) + comps='yes no override trusted' ;; esac COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) -- cgit v1.2.2