mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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>
This commit is contained in:
@@ -166,3 +166,13 @@ char **
|
||||
virshDomainStorageFileFormatCompleter(vshControl *ctl,
|
||||
const vshCmd *cmd,
|
||||
unsigned int flags);
|
||||
|
||||
char **
|
||||
virshDomainMigrateDisksCompleter(vshControl *ctl,
|
||||
const vshCmd *cmd,
|
||||
unsigned int completeflags);
|
||||
|
||||
char **
|
||||
virshDomainUndefineStorageDisksCompleter(vshControl *ctl,
|
||||
const vshCmd *cmd,
|
||||
unsigned int completeflags);
|
||||
|
||||
Reference in New Issue
Block a user