[Libguestfs] [PATCH 0/3] Add JSON output for virt-builder

Pino Toscano ptoscano at redhat.com
Thu Jan 16 14:04:29 UTC 2014


Hi,

This small patch serie adds a JSON output for virt-builder.
This way it is possible to parse the list of available templates,
with no need to parse the unstructured and possibly changing short and
long outputs of virt-builder.


Pino Toscano (3):
  builder: small refactor of the list output
  builder: add --list-format
  builder: add a JSON output for --list

 builder/builder.ml                |   4 +-
 builder/cmdline.ml                |  19 +++--
 builder/list_entries.ml           | 142 ++++++++++++++++++++++++++++----------
 builder/list_entries.mli          |   2 +-
 builder/test-virt-builder-list.sh |  67 ++++++++++++++++++
 builder/virt-builder.pod          |  34 ++++++++-
 6 files changed, 222 insertions(+), 46 deletions(-)

-- 
1.8.3.1




More information about the Libguestfs mailing list