]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Provide completers for options taking comma separated list of disk targets
authorPeter Krempa <pkrempa@redhat.com>
Thu, 16 Sep 2021 13:11:03 +0000 (15:11 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 17 Sep 2021 07:40:46 +0000 (09:40 +0200)
commit119b139c76ea837e3ac3792736cf7a5845208968
treea61da5d91b92557ed167d1b04970ff1c43cb609e
parent80f70c74a72aff1727636a1d9f0c7766fbcb9f5b
virsh: Provide completers for options taking comma separated list of disk targets

'--storage' of the 'undefine' command and '--migrate-disks' of the
'migrate' command take a list of disk targets as an argument.

We can simply combine 'virshDomainDiskTargetCompleter' with
'virshCommaStringListComplete' to provide the completions.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-completer-domain.c
tools/virsh-completer-domain.h
tools/virsh-domain.c