search for: 6d6439f

Displaying 3 results from an estimated 3 matches for "6d6439f".

Did you mean: 5d64393
2014 Jan 16
5
[PATCH 0/3] Add JSON output for virt-builder
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
2014 Jan 16
0
[PATCH 2/3] builder: add --list-format
...ormat which allows to choose which in format should be the output of --list. --- builder/cmdline.ml | 11 ++++++++++- builder/virt-builder.pod | 24 +++++++++++++++++++++--- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/builder/cmdline.ml b/builder/cmdline.ml index f199f03..6d6439f 100644 --- a/builder/cmdline.ml +++ b/builder/cmdline.ml @@ -132,6 +132,13 @@ let parse_cmdline () = let list_format = ref `Short in let list_set_long () = list_format := `Long in + let list_set_format arg = + list_format := match arg with + | "short" -> `Short + | &q...
2014 Jan 16
0
[PATCH 3/3] builder: add a JSON output for --list
...++++++++++++++++ builder/list_entries.mli | 2 +- builder/test-virt-builder-list.sh | 67 +++++++++++++++++++++++++++++++++++++++ builder/virt-builder.pod | 12 ++++++- 5 files changed, 141 insertions(+), 3 deletions(-) diff --git a/builder/cmdline.ml b/builder/cmdline.ml index 6d6439f..e3b1484 100644 --- a/builder/cmdline.ml +++ b/builder/cmdline.ml @@ -136,6 +136,7 @@ let parse_cmdline () = list_format := match arg with | "short" -> `Short | "long" -> `Long + | "json" -> `Json | fmt -> eprintf (f_"%s:...