-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigParsing.hpp
More file actions
26 lines (19 loc) · 876 Bytes
/
Copy pathConfigParsing.hpp
File metadata and controls
26 lines (19 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef RUNCPP2_CONFIG_PARSING_HPP
#define RUNCPP2_CONFIG_PARSING_HPP
#include "runcpp2/Data/Profile.hpp"
#include "runcpp2/Data/ScriptInfo.hpp"
#include "ghc/filesystem.hpp"
#include <string>
#include <vector>
namespace runcpp2
{
DS::Result<std::string> GetConfigFilePath();
DS::Result<void> WriteDefaultConfigs( const ghc::filesystem::path& userConfigPath,
const bool writeUserConfig,
const bool writeDefaultConfigs);
DS::Result<void> ReadUserConfig(std::vector<Data::Profile>& outProfiles,
std::string& outPreferredProfile,
const std::string& customConfigPath = "");
DS::Result<void> ParseScriptInfo(const std::string& scriptInfo, Data::ScriptInfo& outScriptInfo);
}
#endif