On Tue, Jan 08, 2013 at 07:02:00PM +0100, Michal Privoznik wrote:
Going over my local git branches, I found old patch set which I was
trying to get in once.
Along guest IP address patches I feel like this one is desired as well and keeps
returning
to us from time to time.
What I think this feature should look like:
virsh # sta<TAB>
expands to:
virsh # start
Now, hitting <TAB> again (okay, several times actually) gives us a list of
supported options:
--autodestroy --bypass-cache --console --force-boot --paused
virsh # start --
Up to here, it's just current implementation. What I'd like to see is list of
(ideally shut off) domains:
--autodestroy --bypass-cache --console --force-boot --paused f17 f18
<...>
virsh # start --
The same applies to complete a single option as well. That is not (only) command based
completer,
but a option based one. IIRC, that was conclusion on my first approach as well. What
I've come up with so far is:
If you search the mail archives there have been at least 4 postings of
virsh autocompletion, but none ever got finished. IIRC the most recent
was by Serge. Probably worth starting off from one of those patches
rather than writing from scratch.
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|