From: Michal Privoznik Date: Fri, 17 Sep 2021 07:50:09 +0000 (+0200) Subject: virsh: Provide local path completer for screenshot --file X-Git-Tag: v7.8.0-rc1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8eefc7afc8794ace47b0d1ce46ccf6bd76d7369a;p=thirdparty%2Flibvirt.git virsh: Provide local path completer for screenshot --file The screenshot command takes optional --file argument which can point to an existing local path (in which case the file is overwritten). Set the argument's completer so that self-test doesn't report it as missing. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 70aa4167c2..f876f30cc5 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -5520,6 +5520,7 @@ static const vshCmdOptDef opts_screenshot[] = { VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE), {.name = "file", .type = VSH_OT_STRING, + .completer = virshCompletePathLocalExisting, .help = N_("where to store the screenshot") }, {.name = "screen",