]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Introduce virshCompleteEmpty and use it for places where we can't suggest...
authorPeter Krempa <pkrempa@redhat.com>
Wed, 15 Sep 2021 15:42:08 +0000 (17:42 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 17 Sep 2021 07:40:46 +0000 (09:40 +0200)
commit071bab399a2ef54cc0c9cf5e658ad35c05300532
tree5c28314e97166423f9cd23b349c6537f30e303b8
parent2732d81984594fa71e3fab54fbbacef6995a9a9b
virsh: Introduce virshCompleteEmpty and use it for places where we can't suggest anything

For now this serves just as an annotation because readline and also the
bash completion script insist on completing local paths when an empty
list is returned.

This will serve for future reference once we'll be able to properly
refuse to suggest anything.

The completer is used for fields such as names for new objects,
description strings, password strings etc, URIs and hostnames which we
can't feasibly autocomplete.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-checkpoint.c
tools/virsh-completer.c
tools/virsh-completer.h
tools/virsh-domain.c
tools/virsh-pool.c
tools/virsh-secret.c
tools/virsh-snapshot.c
tools/virsh-volume.c
tools/virsh.c