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