summaryrefslogtreecommitdiff
path: root/tools/virsh-domain.c
diff options
context:
space:
mode:
authorLin Ma <lma@suse.com>2020-11-10 17:50:54 +0800
committerMichal Privoznik <mprivozn@redhat.com>2020-11-10 18:34:04 +0100
commitf8b3e98a01ae5ec9f8ea2b9efd1493ffa196e5ec (patch)
treee74b929eb72d80cba07534349d50f1330999f6bb /tools/virsh-domain.c
parent4583a49ccf41e78c4f2cc7788a193a6c5509bd09 (diff)
downloadlibvirt-f8b3e98a01ae5ec9f8ea2b9efd1493ffa196e5ec.tar.gz
virsh: Add serial/parallel device name completion to console command
Signed-off-by: Lin Ma <lma@suse.com> 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 675d96440d..022dbdca3c 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -2960,6 +2960,7 @@ static const vshCmdOptDef opts_console[] = {
VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
{.name = "devname", /* sc_prohibit_devname */
.type = VSH_OT_STRING,
+ .completer = virshDomainConsoleCompleter,
.help = N_("character device name")
},
{.name = "force",