Re: [virt-viewer][PATCH] Introduce bash completion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/26/19 4:26 PM, Michal Privoznik wrote:
With this change one can get list of domains on the command line:

   $ virt-viewer -c qemu:///system <TAB><TAB>
   dom1   dom2   ... domN

The list of domains is fetched using virsh, hence the dependency
on libvirt-client recorded in the spec file. I think it's fair
to assume that Linux hosts with virt-viewer will have virsh
available too. If they don't, nothing breaks and no error message
is printed.

The completer script is inspired by libvirt.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
  Makefile.am                 |  2 +-
  bash-completion/Makefile.am | 20 +++++++++
  bash-completion/virt-viewer | 90 +++++++++++++++++++++++++++++++++++++
  configure.ac                |  9 +++-
  m4/virt-bash-completion.m4  | 83 ++++++++++++++++++++++++++++++++++
  virt-viewer.spec.in         | 14 ++++++
  6 files changed, 216 insertions(+), 2 deletions(-)
  create mode 100644 bash-completion/Makefile.am
  create mode 100644 bash-completion/virt-viewer
  create mode 100644 m4/virt-bash-completion.m4

Polite ping.

Michal

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux