]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: completer: Extract common completer methods from virsh to vsh
authorPeter Krempa <pkrempa@redhat.com>
Tue, 20 May 2025 13:21:22 +0000 (15:21 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 21 May 2025 13:49:36 +0000 (15:49 +0200)
commit8d1cd03478600242cc3a2e5bd1f003c22ee7479a
tree2723ed03df863448cced32dd37990dfa013b1578
parentc22b73411732b9a135923c19b7784c7c48729042
virsh: completer: Extract common completer methods from virsh to vsh

The helper methods as well as the empty completers can be useful also in
other virt shells; extract the code and rename the functions
appropriately.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
23 files changed:
tools/meson.build
tools/virsh-backup.c
tools/virsh-checkpoint.c
tools/virsh-completer-domain.c
tools/virsh-completer-host.c
tools/virsh-completer-nodedev.c
tools/virsh-completer-pool.c
tools/virsh-completer-volume.c
tools/virsh-completer.h
tools/virsh-domain.c
tools/virsh-host.c
tools/virsh-interface.c
tools/virsh-network.c
tools/virsh-nodedev.c
tools/virsh-nwfilter.c
tools/virsh-pool.c
tools/virsh-secret.c
tools/virsh-snapshot.c
tools/virsh-volume.c
tools/virsh.c
tools/virsh.h
tools/vsh-completer.c [moved from tools/virsh-completer.c with 85% similarity]
tools/vsh-completer.h [new file with mode: 0644]