libvirt/tools
Peter Krempa ac150162fd vsh: Annotate 'required' and 'positional' arguments explicitly
Add 'positional' and 'required' fields to vshCmdOptDef, which will
explicitly track the two properties of arguments.

To ensure that we have proper coverage, add checks to
vshCmddefCheckInternals validating the state of the above flags by
infering it from existing data.

This conversion will allow us:
 - remove VSH_OT_DATA in favor of VSH_OT_STRING
 - use VSH_OT_INT when required both as positional and non-positional
 - properly annotate which VSH_OT_ARGV are positional and which are not
   (currently inferred by whether an previous positional option exists)

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2024-03-13 15:02:52 +01:00
..
bash-completion
nss syntax-check: Forbid use of qsort() 2023-11-24 09:53:14 +01:00
wireshark
libvirt_recover_xattrs.sh
libvirt_win_icon_16x16.ico
libvirt_win_icon_32x32.ico
libvirt_win_icon_48x48.ico
libvirt_win_icon_64x64.ico
libvirt-guests.service.in systemd: More tweaks to Description and Documentation lines 2023-11-06 23:45:04 +01:00
libvirt-guests.sh.in
meson.build build: suppress "ignoring duplicate libraries" warning on macOS 2023-11-03 15:56:37 -04:00
virsh_win_icon.rc
virsh-backup.c vsh: Refactor store of command help and description 2024-03-13 15:02:52 +01:00
virsh-backup.h
virsh-checkpoint.c vsh: Refactor store of command help and description 2024-03-13 15:02:52 +01:00
virsh-checkpoint.h
virsh-completer-checkpoint.c
virsh-completer-checkpoint.h
virsh-completer-domain.c virsh: Command completion, add comp-methods with zlib and zstd 2024-01-11 13:15:08 +01:00
virsh-completer-domain.h virsh: Move 'cmdEvent' and all of its machinery to virsh-domain-event.c 2022-03-03 11:06:56 +01:00
virsh-completer-host.c
virsh-completer-host.h
virsh-completer-interface.c
virsh-completer-interface.h
virsh-completer-network.c
virsh-completer-network.h
virsh-completer-nodedev.c conf: move/rename hostdev PCI driver type enum to device_conf.h 2024-01-07 23:57:09 -05:00
virsh-completer-nodedev.h
virsh-completer-nwfilter.c
virsh-completer-nwfilter.h
virsh-completer-pool.c virsh-completer: modify and fix bug in virshPoolTypeCompleter, now used for more commands 2024-02-20 12:08:22 +01:00
virsh-completer-pool.h virsh-completer: modify and fix bug in virshPoolTypeCompleter, now used for more commands 2024-02-20 12:08:22 +01:00
virsh-completer-secret.c
virsh-completer-secret.h
virsh-completer-snapshot.c
virsh-completer-snapshot.h
virsh-completer-volume.c
virsh-completer-volume.h
virsh-completer.c
virsh-completer.h
virsh-console.c
virsh-console.h
virsh-domain-event.c vsh: Refactor store of command help and description 2024-03-13 15:02:52 +01:00
virsh-domain-event.h
virsh-domain-monitor.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virsh-domain-monitor.h
virsh-domain.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virsh-domain.h
virsh-edit.c
virsh-host.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virsh-host.h
virsh-interface.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virsh-interface.h
virsh-network.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virsh-network.h
virsh-nodedev.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virsh-nodedev.h
virsh-nwfilter.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virsh-nwfilter.h
virsh-pool.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virsh-pool.h
virsh-secret.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virsh-secret.h
virsh-snapshot.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virsh-snapshot.h
virsh-util.c lib: Replace xmlKeepBlanksDefault() with virXMLParseWithIndent() 2023-11-21 14:43:39 +01:00
virsh-util.h
virsh-volume.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virsh-volume.h
virsh.c vsh: Refactor store of command help and description 2024-03-13 15:02:52 +01:00
virsh.h vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virt-admin-completer.c
virt-admin-completer.h
virt-admin.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
virt-admin.h
virt-host-validate-bhyve.c
virt-host-validate-bhyve.h
virt-host-validate-ch.c
virt-host-validate-ch.h
virt-host-validate-common.c
virt-host-validate-common.h
virt-host-validate-lxc.c
virt-host-validate-lxc.h
virt-host-validate-qemu.c
virt-host-validate-qemu.h
virt-host-validate.c
virt-login-shell-helper.c
virt-login-shell.c
virt-login-shell.conf
virt-pki-query-dn.c
virt-pki-validate.in
virt-qemu-qmp-proxy
virt-qemu-sev-validate vir-qemu-sev-validate: Use string() method in xpath 2023-12-05 12:21:38 +01:00
virt-sanlock-cleanup.in
virt-xml-validate.in
vsh-table.c
vsh-table.h
vsh.c vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00
vsh.h vsh: Annotate 'required' and 'positional' arguments explicitly 2024-03-13 15:02:52 +01:00