mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 05:45:46 +00:00
virsh-snapshot: Use 'virshSnapshotNameCompleter' for '--from' of 'snapshot-list'
When listing a snapshot tree, the '--from' option takes a name of a snapshot to limit the subset. Use virshSnapshotNameCompleter as completer for the option. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8f5b8fac33
commit
573385dc9c
@ -1411,6 +1411,7 @@ static const vshCmdOptDef opts_snapshot_list[] = {
|
|||||||
},
|
},
|
||||||
{.name = "from",
|
{.name = "from",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
|
.completer = virshSnapshotNameCompleter,
|
||||||
.help = N_("limit list to children of given snapshot")
|
.help = N_("limit list to children of given snapshot")
|
||||||
},
|
},
|
||||||
VIRSH_COMMON_OPT_CURRENT(N_("limit list to children of current snapshot")),
|
VIRSH_COMMON_OPT_CURRENT(N_("limit list to children of current snapshot")),
|
||||||
|
Loading…
Reference in New Issue
Block a user