diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-05-03 10:48:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-05-03 10:48:41 +0000 |
commit | 6eb5b6f920b237d6304a0aada1eeb35a66d9ef20 (patch) | |
tree | e7efe2fca9e2d175d1e4ef8523380e72bd8168a0 /share/bash-completion | |
parent | Adding upstream version 20180218. (diff) | |
download | open-infrastructure-compute-tools-6eb5b6f920b237d6304a0aada1eeb35a66d9ef20.tar.xz open-infrastructure-compute-tools-6eb5b6f920b237d6304a0aada1eeb35a66d9ef20.zip |
Adding upstream version 20180503.upstream/20180503
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/bash-completion')
-rw-r--r-- | share/bash-completion/container | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container index 0a9af1a..e117d16 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -48,7 +48,7 @@ _container() console|con) case "${prev}" in -n|--name) - opts=$(container list -s -f shell) + opts="$(container list -s -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -64,19 +64,19 @@ _container() create) case "${prev}" in -n|--name) - opts=$(cd /etc/container-tools/debconf 2>/dev/null && ls *.cfg 2>/dev/null | sed -e 's/.cfg$//g') + opts="$(cd /etc/container-tools/debconf 2>/dev/null && ls *.cfg */*.cfg 2>/dev/null | sed -e 's|.*/||g' -e 's|.cfg$||g')" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; -s|--script) - opts=$(cd /usr/share/container-tools/scripts && find -maxdepth 1 -not -type d -and -not -name 'default' -and -not -name 'debconf' -and -not -name '*.d' -printf '%P\n' | sort) + opts="$(cd /usr/share/container-tools/scripts && find -maxdepth 1 -not -type d -and -not -name 'default' -and -not -name 'debconf' -and -not -name '*.d' -printf '%P\n' | sort)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; *) - opts="-n --name -c --capability -d --drop-capability -s --script -b --bind --bind-ro" + opts="-n --name -c --capability -d --drop-capability -s --script -v --verbose -b --bind --bind-ro" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -86,7 +86,7 @@ _container() enter) case "${prev}" in -n|--name) - opts=$(container list -s -f shell) + opts="$(container list -s -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -108,7 +108,7 @@ _container() limit) case "${prev}" in -n|--name) - opts=$(container list -a -f shell) + opts="$(container list -a -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -146,7 +146,7 @@ _container() move|mv) case "${prev}" in -o|--old) - opts=$(container list -t -f shell) + opts="$(container list -t -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -162,7 +162,7 @@ _container() remove|rm) case "${prev}" in -n|--name) - opts=$(container list -t -f shell) + opts="$(container list -t -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -178,7 +178,7 @@ _container() restart) case "${prev}" in -n|--name) - opts=$(container list -s -f shell) + opts="$(container list -s -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -194,7 +194,7 @@ _container() start) case "${prev}" in -n|--name) - opts=$(container list -t -f shell) + opts="$(container list -t -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -210,7 +210,7 @@ _container() status) case "${prev}" in -n|--name) - opts=$(container list -t -f shell) + opts="$(container list -t -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -226,7 +226,7 @@ _container() stop) case "${prev}" in -n|--name) - opts=$(container list -s -f shell) + opts="$(container list -s -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; |