libvirt/tools
Simon Kobyda 9417f0b3f6 vsh: Add API for printing tables.
It solves problems with alignment of columns. Width of each column
is calculated by its biggest cell. Should solve unicode bug.
In future, it may be implemented in virsh, virt-admin...

This API has 5 public functions:
- vshTableNew - adds new table and defines its header
- vshTableRowAppend - appends new row (for same number of columns as in
header)
- vshTablePrintToStdout
- vshTablePrintToString
- vshTableFree

https://bugzilla.redhat.com/show_bug.cgi?id=1574624
https://bugzilla.redhat.com/show_bug.cgi?id=1584630

Signed-off-by: Simon Kobyda <skobyda@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2018-08-24 10:52:41 +02:00
..
bash-completion tools: Provide bash autompletion file 2018-01-11 18:53:04 +01:00
nss util: Clean up consumers of virJSONValueArraySize 2018-05-10 14:59:15 -04:00
wireshark Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
libvirt_win_icon_16x16.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_32x32.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_48x48.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_64x64.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt-guests.init.in Use https:// links for most sites 2017-10-16 10:22:34 +01:00
libvirt-guests.service.in Use https:// links for most sites 2017-10-16 10:22:34 +01:00
libvirt-guests.sh.in tools: do not report unknown guests in print_guests_shutdown 2018-04-24 10:46:41 +02:00
libvirt-guests.sysconf lxc: allow use of lxc:///system URI as preferred format 2018-04-12 16:52:01 +01:00
Makefile.am vsh: Add API for printing tables. 2018-08-24 10:52:41 +02:00
virsh_win_icon.rc Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
virsh-completer.c New virsh feature: domif-setlink --domain --interface --state completer 2018-07-12 17:23:15 +02:00
virsh-completer.h New virsh feature: domif-setlink --domain --interface --state completer 2018-07-12 17:23:15 +02:00
virsh-console.c tools: Introduce new client generic module vsh 2015-08-14 15:45:44 +02:00
virsh-console.h tools: Introduce new client generic module vsh 2015-08-14 15:45:44 +02:00
virsh-domain-monitor.c qemu: Add entry for balloon stat stat-disk-caches 2018-07-16 17:42:23 -04:00
virsh-domain-monitor.h tools: Introduce new client generic module vsh 2015-08-14 15:45:44 +02:00
virsh-domain.c virsh: Support alias in attach-interface 2018-07-23 12:04:49 +02:00
virsh-domain.h virsh: Move vshEventCallback structure definition to virsh-domain.h 2018-05-24 13:36:32 +02:00
virsh-edit.c virsh-edit: remove unreachable break 2018-03-08 16:51:31 +01:00
virsh-host.c virsh: Introduce new hypervisor-cpu-baseline command 2018-05-28 15:59:10 +02:00
virsh-host.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virsh-interface.c virsh: Introduce virshInterfaceNameCompleter 2018-01-24 13:51:21 +01:00
virsh-interface.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virsh-network.c virsh-network: Add network name completion to 'net-uuid' command 2018-05-17 17:06:11 +02:00
virsh-network.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virsh-nodedev.c virsh: Add event name completion to 'nodedev-event' command 2018-05-24 15:26:10 +02:00
virsh-nodedev.h virsh-nodedev: Rename and move vshEventCallback to virshNodedevEventCallback 2018-05-24 15:26:10 +02:00
virsh-nwfilter.c virsh: add nwfilter binding commands 2018-06-26 11:22:07 +01:00
virsh-nwfilter.h virsh: add nwfilter binding commands 2018-06-26 11:22:07 +01:00
virsh-pool.c storage: Introduce iscsi_direct pool type 2018-08-06 12:23:55 +02:00
virsh-pool.h virsh-pool: Rename and move vshEventCallback to virshPoolEventCallback 2018-05-24 15:26:02 +02:00
virsh-secret.c virsh: Add event name completion to 'secret-event' command 2018-05-24 13:34:18 +02:00
virsh-secret.h virsh-secret: Rename vshEventCallback to virshSecretEventCallback 2018-05-24 13:32:25 +02:00
virsh-snapshot.c virsh: Move the definition of macro VIRSH_COMMON_OPT_DOMAIN_FULL to virsh.h 2018-05-10 07:51:37 +02:00
virsh-snapshot.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virsh-util.c all: Replace virGetLastError with virGetLastErrorCode where we can 2018-06-05 18:44:05 +02:00
virsh-util.h virsh: Implement sparse stream to vol-upload 2017-05-18 07:42:13 +02:00
virsh-volume.c virsh: Clear vsh last error during virshCommandOptVolBy 2018-04-17 11:19:13 -04:00
virsh-volume.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virsh.c virsh: remove left over print statement wrt Xen driver 2018-04-24 16:59:21 +01:00
virsh.h virsh: Create macros for VSH_OT_ARGV "domain" option 2018-05-10 10:01:15 +02:00
virsh.pod virsh: Add missed fields to pool-define-as item entry 2018-08-14 07:28:56 -04:00
virt-admin-completer.c virt-admin: Introduce vshAdmServerCompleter 2018-01-11 18:53:04 +01:00
virt-admin-completer.h virt-admin: Introduce vshAdmServerCompleter 2018-01-11 18:53:04 +01:00
virt-admin.c virt-admin: Fix two error messages 2018-07-21 07:46:45 -04:00
virt-admin.h Revert "admin: Rename virAdmConnect to virAdmDaemon" 2015-12-21 10:07:59 +01:00
virt-admin.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-host-validate-bhyve.c virsh: Define multi line macros properly 2017-11-04 08:38:08 +01:00
virt-host-validate-bhyve.h virt-host-validate: add bhyve support 2017-03-11 21:22:58 +04:00
virt-host-validate-common.c virt-host-validate: Fix warning for IOMMU detection on PPC 2017-08-24 18:37:37 -04:00
virt-host-validate-common.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
virt-host-validate-lxc.c virt-host-validate: require fuse for LXC if compiled in 2017-10-12 21:32:07 +02:00
virt-host-validate-lxc.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
virt-host-validate-qemu.c tools: handle missing switch enum cases 2018-02-21 16:59:44 +00:00
virt-host-validate-qemu.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
virt-host-validate.c po: provide custom make rules for po file management 2018-04-19 10:35:58 +01:00
virt-host-validate.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-login-shell.c lxc: allow use of lxc:///system URI as preferred format 2018-04-12 16:52:01 +01:00
virt-login-shell.conf virt-login-shell: add ability to auto-detect shell from container 2016-06-10 11:03:02 +01:00
virt-login-shell.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-pki-validate.in fix regex to check CN from server certificate 2018-02-08 18:05:05 +01:00
virt-pki-validate.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-sanlock-cleanup.in build: Extract pod from source files 2016-04-25 15:40:43 +02:00
virt-sanlock-cleanup.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-xml-validate.in virt-xml-validate: Add schema for nwfilterbinding 2018-07-19 16:16:57 -04:00
virt-xml-validate.pod virt-xml-validate: Add schema for nwfilterbinding 2018-07-19 16:16:57 -04:00
vsh-table.c vsh: Add API for printing tables. 2018-08-24 10:52:41 +02:00
vsh-table.h vsh: Add API for printing tables. 2018-08-24 10:52:41 +02:00
vsh.c all: Replace virGetLastError with virGetLastErrorCode where we can 2018-06-05 18:44:05 +02:00
vsh.h vsh: Drop redundant definition searches from vshCmd{def,Grp}Help 2018-01-25 16:20:27 +01:00