diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-02-16 21:11:21 +0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-02-16 21:11:21 +0700 |
commit | e4cac118645ffb290ec78e4cde6c9757219d3a10 (patch) | |
tree | 8a29e91560649ae24981a346828206c65c5d3c67 /_oasis | |
parent | 56130bfe30781c210c7459e5df9afa7d894aeec7 (diff) | |
download | vyconf-e4cac118645ffb290ec78e4cde6c9757219d3a10.tar.gz vyconf-e4cac118645ffb290ec78e4cde6c9757219d3a10.zip |
Implement config reading functions and a minimal command line client for using them.
Yes, I hate oversized commits too, but this is hard to avoid sometimes.
Adjustments to the Session functions logic required to make it work:
Do not try to validate the path. The validation function is geared towards
validating _set_ paths, so when path lacks a value, it doesn't work right.
We assume that the path has been through set at some point, so if a path
currently exists in the config tree, it is also a valid path that can be used for
Reference_tree.is_leaf etc.
Diffstat (limited to '_oasis')
-rw-r--r-- | _oasis | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -27,9 +27,9 @@ Library "vyconfd-config" Library "client" Path: src Modules: Vyconf_client - InternalModules: Vyconf_pb, Message + InternalModules: Vyconf_pb, Vyconf_types, Message, Util, Vylist FindlibParent: vyconf - BuildDepends: ocaml-protoc, ocplib-endian + BuildDepends: lwt, ocaml-protoc, ocplib-endian, batteries, fileutils, yojson Executable "vyconfd" Path: src @@ -37,6 +37,12 @@ Executable "vyconfd" CompiledObject: best BuildDepends: lwt, lwt.unix, lwt.ppx, ocaml-protoc, ocplib-endian, sha, batteries, vyconf, vyconf.vyconfd-config +Executable "vycli" + Path: src + MainIs: vycli.ml + CompiledObject: best + BuildDepends: lwt, lwt.unix, lwt.ppx, ocaml-protoc, ocplib-endian, pcre, vyconf.client + Executable "vytree_test" Path: test MainIs: vytree_test.ml |