Module for loading custom config files in form of json
Example config file:
https://github.com/nirokay/nimegenerator/blob/master/examples/custom_config_example.json
Custom config files are kinda barebones, each entry overrides the already existing/default stuff.
Types
ConfigFile = object rules*: Option[GenerationRules] dictionary*: Option[seq[JsonLetter]]
JsonFollowed = tuple[always, often, rarely, never: Option[seq[string]]]
JsonLetter = object letter*: string vowel*: Option[bool] followed*: Option[JsonFollowed] formables*: Option[seq[string]]
Procs
proc loadCustomConfigFromFile(filepath: string) {. ...raises: [ValueError, OSError, Exception], tags: [ReadDirEffect, ReadIOEffect, WriteIOEffect].}