MCPcopy Create free account
hub / github.com/dhbloo/rapfi / getDefaultConfigPath

Function getDefaultConfigPath

Rapfi/command/command.cpp:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 std::filesystem::path getDefaultConfigPath()
93 {
94 // First, check if there is a config at current working dir.
95 if (std::filesystem::exists("config.toml"))
96 return "config.toml";
97 // If not, we choose the one at current binary dir.
98 else
99 return binaryDirectory / "config.toml";
100 }
101
102} // namespace CommandLine
103

Callers 1

loadConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected