mirror of
https://github.com/status-im/nim-confutils.git
synced 2025-02-19 15:34:16 +00:00
- The config files processing was not taking into account the `name` pragma of the configuration object fields. - The required fields were not searched within config files before reporting an error that they are missing. - Fields with the same names were not supported in different case branches - The loaded config file path can now depend on the configuration supplied through the command-line.
16 lines
357 B
Nim
16 lines
357 B
Nim
import
|
|
toml_serialization, ../defs as confutilsDefs
|
|
|
|
export
|
|
toml_serialization, confutilsDefs
|
|
|
|
template readConfutilsType(T: type) =
|
|
template readValue*(r: var TomlReader, val: var T) =
|
|
val = T r.readValue(string)
|
|
|
|
readConfutilsType InputFile
|
|
readConfutilsType InputDir
|
|
readConfutilsType OutPath
|
|
readConfutilsType OutDir
|
|
readConfutilsType OutFile
|