]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: domain: Annotate rest of arguments taking local existing file
authorPeter Krempa <pkrempa@redhat.com>
Tue, 20 May 2025 13:57:02 +0000 (15:57 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 21 May 2025 13:49:36 +0000 (15:49 +0200)
Few arguments were missing the 'vshCompletePathLocalExisting' completer.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain.c

index f9acedf3dbb40508b321140bdfc641ffdba1a8a4..8d615b6e7aa2899975e614f250e80c6c00003eb5 100644 (file)
@@ -423,6 +423,7 @@ static const vshCmdOptDef opts_attach_disk[] = {
      .positional = true,
      .required = true,
      .allowEmpty = true,
+     .completer = vshCompletePathLocalExisting,
      .help = N_("source of disk device or name of network disk")
     },
     {.name = "target",
@@ -4931,6 +4932,7 @@ static const vshCmdOptDef opts_save_image_dumpxml[] = {
      .type = VSH_OT_STRING,
      .positional = true,
      .required = true,
+     .completer = vshCompletePathLocalExisting,
      .help = N_("saved state file to read")
     },
     {.name = "security-info",
@@ -4988,6 +4990,7 @@ static const vshCmdOptDef opts_save_image_define[] = {
      .type = VSH_OT_STRING,
      .positional = true,
      .required = true,
+     .completer = vshCompletePathLocalExisting,
      .help = N_("saved state file to modify")
     },
     {.name = "xml",
@@ -5053,6 +5056,7 @@ static const vshCmdOptDef opts_save_image_edit[] = {
      .type = VSH_OT_STRING,
      .positional = true,
      .required = true,
+     .completer = vshCompletePathLocalExisting,
      .help = N_("saved state file to edit")
     },
     {.name = "running",
@@ -5667,6 +5671,7 @@ static const vshCmdOptDef opts_restore[] = {
      .type = VSH_OT_STRING,
      .positional = true,
      .required = true,
+     .completer = vshCompletePathLocalExisting,
      .help = N_("the state to restore")
     },
     {.name = "bypass-cache",
@@ -13153,6 +13158,7 @@ static const vshCmdOptDef opts_change_media[] = {
     {.name = "source",
      .type = VSH_OT_STRING,
      .positional = true,
+     .completer = vshCompletePathLocalExisting,
      .help = N_("source of the media")
     },
     {.name = "eject",