]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vsh: Call vshCmdOptDef completer
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 21 Nov 2017 16:45:50 +0000 (17:45 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Jan 2018 17:53:04 +0000 (18:53 +0100)
commitf1da85d44ed96ed85c1463cf3d416fd6bc48b50c
treece372daef8d77c4b2968bd5567292356f671110f
parent4d3c65c2e84142527cebcedcaa50b38ddf862ed8
vsh: Call vshCmdOptDef completer

Now that we have everything prepared we can call options'
completer again. At the same time, pass partially parsed input to
the completer callback - it will help the callbacks to narrow
down the list of returned options based on user's input. For
instance, if the completer is supposed to return list of
interfaces depending on user input it may return just those
interfaces defined for already specified domain. Of course,
completers might ignore this parameter.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/vsh.c
tools/vsh.h