[libvirt] [PATCH 0/8] virsh: More intelligent auto-completion

Michal Privoznik mprivozn at redhat.com
Mon Aug 19 14:44:58 UTC 2013


On 08.08.2013 16:38, Tomas Meszaros wrote:
> Hi, this patch series is a prototype for my GSoC project (Michal Privoznik
> is my mentor).
> 
> I'm working on virsh auto-completion, trying to make it more "intelligent".
> At this stage, prototype is capable of command and option completion. Three
> completer functions are currently implemented so you can test it. If it turns
> out that this prototype is good enough, I will implement more completer functions.
> 
> Tomas Meszaros (8):
>   virsh: Add vshCmdCompleter and vshOptCompleter
>   virsh: Add vshDomainCompleter
>   virsh: Add vshSuspendTargetCompleter
>   virsh: Add vshRebootShutdownModeCompleter
>   virsh: Improve readline generators and readline completion
>   virsh: Add completer functions to domManaggementCmds
>   virsh: Add completer functions to snapshotCmds
>   virsh: Add completer functions to domMonitoringCmds
> 
>  tools/virsh-domain-monitor.c |  32 ++-
>  tools/virsh-domain.c         | 240 +++++++++++++++-----
>  tools/virsh-snapshot.c       |  45 +++-
>  tools/virsh.c                | 507 +++++++++++++++++++++++++++++++++++++++++--
>  tools/virsh.h                |  11 +
>  5 files changed, 742 insertions(+), 93 deletions(-)
> 

I think this is very good starting point. See my inline comments.
Looking forward to v2.

Michal




More information about the libvir-list mailing list