MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / parseFile

Method parseFile

sources/agents/AgentLoader.cpp:196–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194} // namespace
195
196std::optional<AgentConfig> AgentLoader::parseFile(
197 const QString &path, QString *error, QStringList * /*warnings*/)
198{
199 auto objOpt = parseTomlFile(path, error);
200 if (!objOpt) return std::nullopt;
201 AgentConfig cfg = configFromMerged(*objOpt);
202 cfg.sourcePath = path;
203 return cfg;
204}
205
206AgentLoader::LoadResult AgentLoader::load(const QString &qrcPrefix, const QString &userDir)
207{

Callers

nothing calls this directly

Calls 2

configFromMergedFunction · 0.85
parseTomlFileFunction · 0.70

Tested by

no test coverage detected