Re: [virt-tools-list] [virt-manager] [RFC PATCH 8/9] Bash completion file

2018-11-17 Thread Cole Robinson
On 11/14/2018 03:12 AM, Lin Ma wrote: The most of content of this file comes from the output of the command ' register-python-argcomplete $MY-SCRIPT', plus some changes. For the details about argcomplete, Please refer to https://pypi.org/project/argcomplete/ or

Re: [virt-tools-list] [virt-manager] [RFC PATCH 9/9] setup.py: Install and link the bash completion scripts

2018-11-17 Thread Cole Robinson
On 11/14/2018 03:12 AM, Lin Ma wrote: Signed-off-by: Lin Ma --- setup.py | 10 ++ 1 file changed, 10 insertions(+) diff --git a/setup.py b/setup.py index 658e6503..1c4b4340 100755 --- a/setup.py +++ b/setup.py @@ -273,6 +273,15 @@ class

Re: [virt-tools-list] [virt-manager] [RFC PATCH 3/9] virt-install: Add auto complete support for the general options

2018-11-17 Thread Cole Robinson
On 11/14/2018 03:12 AM, Lin Ma wrote: With this patchset, the general options completion is available. ex: $ virt-install - ... --arch --check --cpu --dry-run -h --autostart --clock --cputune --events--help ... $ virt-install --a --arch --autostart

Re: [virt-tools-list] [virt-manager] [RFC PATCH 0/9] Tab completion in bash shell via the argcomplete

2018-11-17 Thread Cole Robinson
On 11/14/2018 03:12 AM, Lin Ma wrote: Hi all, These draft patches add the tab completion in bash for virt-* utilities. We've been using the argparse to help parse handling, So I think that the argcomplete is a good option to deal with argument/sub-options completion in bash shell for