summaryrefslogtreecommitdiff
path: root/tools/virsh-domain.c
diff options
context:
space:
mode:
authorLin Ma <morecache@gmail.com>2020-09-11 15:13:09 +0800
committerMichal Privoznik <mprivozn@redhat.com>2020-09-14 15:52:40 +0200
commit889bdba38d34ef0ffa55acc6c857a5c2eb7b1145 (patch)
tree29a4d927252be45a973611b937818ee9d8768979 /tools/virsh-domain.c
parentf6e69f03e36313428c012e8acb81d9102eca7b37 (diff)
downloadlibvirt-889bdba38d34ef0ffa55acc6c857a5c2eb7b1145.tar.gz
virsh: Add domain uuid completion to domname command
Signed-off-by: Lin Ma <lma@suse.de> Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'tools/virsh-domain.c')
-rw-r--r--tools/virsh-domain.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 1b4040080e..48958d6974 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -10369,7 +10369,12 @@ static const vshCmdInfo info_domname[] = {
};
static const vshCmdOptDef opts_domname[] = {
- VIRSH_COMMON_OPT_DOMAIN(N_("domain id or uuid"), 0),
+ {.name = "domain",
+ .type = VSH_OT_DATA,
+ .flags = VSH_OFLAG_REQ,
+ .completer = virshDomainUUIDCompleter,
+ .help = N_("domain id or uuid")
+ },
{.name = NULL}
};