From 76c2a472f9f4869b8a06976eca1c1a025400ca66 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sun, 11 Feb 2018 09:53:45 +0700 Subject: Add output format option (plain or JSON) to the config data reading and op mode functions. Re-generate the protobuf-derived modules. NB: Newer versions of ocaml-protoc moved types to a separate module, needs to be accounted for in other files. --- data/vyconf.proto | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'data/vyconf.proto') diff --git a/data/vyconf.proto b/data/vyconf.proto index de8b5f6..6bd2796 100644 --- a/data/vyconf.proto +++ b/data/vyconf.proto @@ -4,6 +4,11 @@ message Request { JSON = 1; } + enum OutputFormat { + OutPlain = 0; + OutJSON = 1; + } + message Status { } @@ -74,18 +79,22 @@ message Request { message GetValue { repeated string Path = 1; + optional OutputFormat output_format = 2; } message GetValues { repeated string Path = 1; + optional OutputFormat output_format = 2; } message ListChildren { repeated string Path = 1; + optional OutputFormat output_format = 2; } message RunOpMode { repeated string Path = 1; + optional OutputFormat output_format = 2; } message Confirm { -- cgit v1.2.3