From 9883e37f57fa5b9dd7437f3b1b001fdb553529a2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 1 Jul 2016 11:20:11 +0200 Subject: Adding bash-completion for container status command. Signed-off-by: Daniel Baumann --- share/bash-completion/container | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'share') diff --git a/share/bash-completion/container b/share/bash-completion/container index 2a02016..f6434f8 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -208,6 +208,26 @@ _container() esac ;; + status) + case "${cur}" in + -*) + opts="-n --name" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + + *) + case "${prev}" in + -n|--name) + opts=$(container list -t -f short) + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + esac + ;; + esac + ;; + stop) case "${cur}" in -*) -- cgit v1.2.3