From 2e67a52c2e1a25ce7b5a1b4e79bf31799079ae67 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 6 Jun 2021 15:57:35 +0200 Subject: Adding initial container info command. Signed-off-by: Daniel Baumann --- share/bash-completion/container | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'share/bash-completion') diff --git a/share/bash-completion/container b/share/bash-completion/container index 540f162..cfa5740 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -97,6 +97,22 @@ _container() esac ;; + info) + case "${prev}" in + -n|--name) + opts="$(container list -t -f shell)" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + + *) + opts="--status --os --ip" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + esac + ;; + key) opts="-a --add -l --list -r --remove" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) -- cgit v1.2.3