v2 nearly done

This commit is contained in:
Jorijn van der Graaf 2026-04-27 07:04:42 +02:00
commit f13671b2be
24 changed files with 1467 additions and 314 deletions

View file

@ -23,8 +23,14 @@ namespace fs = std::filesystem;
namespace Crafter {
struct Configuration;
std::string BuildStdPcm(Configuration& config);
struct CommandResult {
int exitCode;
std::string output;
};
std::string BuildStdPcm(const Configuration& config, fs::path stdPcm);
fs::path GetCacheDir();
std::string RunCommand();
std::string GetBaseCommand(Configuration& config);
std::string RunCommand(const std::string_view command);
CommandResult RunCommandChecked(std::string_view command);
std::string GetBaseCommand(const Configuration& config);
export Configuration LoadProject(const fs::path& projectFile, std::span<const std::string_view> args);
}