diff options
Diffstat (limited to 'nihil.config/read.ccm')
| -rw-r--r-- | nihil.config/read.ccm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/nihil.config/read.ccm b/nihil.config/read.ccm new file mode 100644 index 0000000..9cf28c9 --- /dev/null +++ b/nihil.config/read.ccm @@ -0,0 +1,22 @@ +/* + * This source code is released into the public domain. + */ + +module; + +#include <expected> +#include <filesystem> + +export module nihil.config:read; + +import nihil.error; + +namespace nihil::config { + +/* + * Load the configuration from a file. + */ +export [[nodiscard]] auto read_from(std::filesystem::path const &filename) + -> std::expected<void, error>; + +} // namespace nihil::config |
