]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vshReadlineParse: Use string list
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 21 Nov 2017 16:23:11 +0000 (17:23 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Jan 2018 17:53:04 +0000 (18:53 +0100)
commit69ebc6451808ef1f14af99862fa903f16a5de6d6
tree8ed93e8865cda5f51b382b4786152182583a53c3
parent61fb1df74d11f16ebfde36027da91b6cc1635375
vshReadlineParse: Use string list

It's better to fetch list of either commands or options just once
and then iterate over it. Moreover, it makes future completers
way simpler as they will return string lists too.

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