aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.config/read.ccm
blob: 18f7213094b5804156f4afb8bb8dcbb1ac47aed1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * This source code is released into the public domain.
 */

module;

#include <expected>
#include <filesystem>

import nihil;

export module nihil.config:read;

namespace nihil::config {

/*
 * Load the configuration from a file.
 */
export [[nodiscard]] auto read_from(std::filesystem::path const &filename)
	-> std::expected<void, nihil::error>;

} // namespace nihil::config