[lxc-devel] [lxd/master] Improve bash completions
yura-pakhuchiy on Github
lxc-bot at linuxcontainers.org
Sun Mar 27 23:19:03 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 352 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160327/ae8e7f7b/attachment.bin>
-------------- next part --------------
From 16b75838a8b8f2c310680df0b3ac7ed0846f182e Mon Sep 17 00:00:00 2001
From: Yura Pakhuchiy <pakhuchiy at gmail.com>
Date: Mon, 28 Mar 2016 05:55:13 +0700
Subject: [PATCH] Improve bash completions
Signed-off-by: Yura Pakhuchiy <pakhuchiy at gmail.com>
---
config/bash/lxd-client | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/config/bash/lxd-client b/config/bash/lxd-client
index aad6407..97d46ef 100644
--- a/config/bash/lxd-client
+++ b/config/bash/lxd-client
@@ -47,17 +47,23 @@ _have lxc && {
COMPREPLY=( $(compgen -W "$lxc_cmds" -- $cur) )
;;
"image")
- COMPREPLY=( $(compgen -W "copy delete edit export info list" -- $cur) )
+ COMPREPLY=( $(compgen -W "import copy delete edit export info list show alias" -- $cur) )
;;
"info")
_lxd_names
;;
+ "init")
+ _lxd_images
+ ;;
"launch")
_lxd_images
;;
+ "move")
+ _lxd_names
+ ;;
"profile")
COMPREPLY=( $(compgen -W \
- "list show create edit copy set delete apply" -- $cur) )
+ "list show create edit copy get set delete apply device" -- $cur) )
;;
"publish")
_lxd_names
More information about the lxc-devel
mailing list