]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Complete multiple options when any one option requires data
authorNishith Shah <nishithshah.2211@gmail.com>
Mon, 5 Sep 2016 09:45:11 +0000 (09:45 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Sep 2016 12:16:45 +0000 (14:16 +0200)
commit731ee28c5b836d39dfa1bf15cb546b0f87004e54
tree0b357f2f60a6a238cbbe4dfd69290188059bdafa
parent2550579669b15bd01ee94003acd513a58360c227
virsh: Complete multiple options when any one option requires data

Before this patch:
    virsh # start --domain dom1 [TAB][TAB] <- offers filename completion
    virsh # start --domain [TAB][TAB] <- offers filename completion

After this patch:
    virsh # start --domain dom1 [TAB][TAB] <- offers command completion
    virsh # start --domain [TAB][TAB] <- calls domain completer if
    defined, otherwise falls back to filename completion

Signed-off-by: Nishith Shah <nishithshah.2211@gmail.com>
tools/vsh.c