From e4cac118645ffb290ec78e4cde6c9757219d3a10 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 16 Feb 2018 21:11:21 +0700 Subject: 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. --- src/session.mli | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/session.mli') diff --git a/src/session.mli b/src/session.mli index 0ec844b..299f2ca 100644 --- a/src/session.mli +++ b/src/session.mli @@ -35,3 +35,5 @@ val exists : world -> session_data -> string list -> bool val list_children : world -> session_data -> string list -> string list val string_of_op : cfg_op -> string + +val show_config : world -> session_data -> string list -> Vyconf_types.request_config_format -> string -- cgit v1.2.3