summaryrefslogtreecommitdiff
path: root/data/vyconf.proto
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-02-11 09:53:45 +0700
committerDaniil Baturin <daniil@baturin.org>2018-02-11 09:53:45 +0700
commit76c2a472f9f4869b8a06976eca1c1a025400ca66 (patch)
treec9f64e42b90d1075faa19803b5ccc1c98fb93833 /data/vyconf.proto
parenta3abb4d9163b80bba036b75e7c8d817a13d313b0 (diff)
downloadvyconf-76c2a472f9f4869b8a06976eca1c1a025400ca66.tar.gz
vyconf-76c2a472f9f4869b8a06976eca1c1a025400ca66.zip
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.
Diffstat (limited to 'data/vyconf.proto')
-rw-r--r--data/vyconf.proto9
1 files changed, 9 insertions, 0 deletions
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 {