summaryrefslogtreecommitdiff
path: root/src/vyconf_config.ml
AgeCommit message (Collapse)Author
2017-02-09Revert "Add basepath option to the vyconfd config."Daniil Baturin
Basepath is better be a command line option, since when it's really needed, having it in the config is pretty much useless. This reverts commit 377de9472716266bb932813a8f7a7ba9aa1630fb.
2017-01-23Add basepath option to the vyconfd config.Daniil Baturin
Right now the primary motivation is ease of testing without installing any appliance on a real system, but in real appliances, this may be handy for those who want things in /opt, even if I'm not a fan of /opt
2017-01-20Use BatOption.defalt instead of homegrown equivalent.Daniil Baturin
If we are going to use batteries for numeric_compare, why not take advantage of the rest.
2017-01-16Use the new Util.substitute_default in Vyconf_config.Daniil Baturin
2016-12-23Make log template and log level configurable.Daniil Baturin
2016-12-15Rename type Vyconf_config.vyconf_config to Vyconf_config.t for brevityDaniil Baturin
It's the only type it exports.
2016-12-14T210: Oops, missing exception handler. mandatory_field raises Missing_fieldDaniil Baturin
2016-12-14T210: Do not use the Result compatibility library, use built-in result type.Daniil Baturin
Use of the Result module from a compatibility library came from using Yojson for config parsing, which uses it for compatibility with older OCaml, since the ('a, 'b) result type appeared in Pervasives only in OCaml 4.03 All projects using vyconf library, however, by definition will be new projects, and will not have any reasons to use older compilers.
2016-12-14T210: use TOML for the vyconf config file.Daniil Baturin
Add an example of the file too.
2016-12-08Fix build for ocaml 4.03Daniil Baturin
Yojson now uses the Result.result type for its decoding functions instead of polymorphic variants.
2015-09-24Add minimal vyconfd config loader.Daniil Baturin