[Libguestfs] [PATCH 0/4] OCaml tools: output messages as JSON machine

Pino Toscano ptoscano at redhat.com
Fri Mar 22 15:33:39 UTC 2019


Enhance the output in machine parseable mode, by outputting all the
messages of OCaml tools as JSON to the machine parseable stream.

Related, although not strictly needed for this (and thus can be split
if requested), is the addition of the fd format for the machine
readable stream.

Pino Toscano (4):
  common/mltools: move the code for machine readable up
  common/mltools: make sure machine readable output is flushed
  common/mltools: allow fd for machine readable output
  OCaml tools: output messages into JSON for machine readable

 common/mltools/Makefile.am     |  2 +-
 common/mltools/tools_utils-c.c | 68 ++++++++++++++++++++++++++
 common/mltools/tools_utils.ml  | 88 ++++++++++++++++++++++------------
 lib/guestfs.pod                | 24 ++++++++++
 4 files changed, 151 insertions(+), 31 deletions(-)

-- 
2.20.1




More information about the Libguestfs mailing list