diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-01-10 15:20:45 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-01-10 15:20:45 +0100 |
commit | 86b4188d5ef7fe284fa9f8c92f6e538c3e565834 (patch) | |
tree | 39f6d5ee9aa44b888d005360b42c1562b6dcc62a /shell-completion/bash | |
parent | man: nspawn: add missing option (diff) | |
download | systemd-86b4188d5ef7fe284fa9f8c92f6e538c3e565834.tar.xz systemd-86b4188d5ef7fe284fa9f8c92f6e538c3e565834.zip |
bash-completion: nspawn: add missing options
Diffstat (limited to 'shell-completion/bash')
-rw-r--r-- | shell-completion/bash/systemd-nspawn | 27 |
1 files changed, 18 insertions, 9 deletions
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") ) |