#include "kappa/package.hpp" #include #include #include #include #include int main(int argc, char* argv[]) { std::filesystem::path toml_path = (argc > 1) ? argv[1] : "package.toml"; if (!std::filesystem::exists(toml_path)) { std::cerr << "Error: '" << toml_path << "' not found\n"; return 1; } try { auto pkg = kappa::parse_package(toml_path.native()); kappa::print_package(std::cout, pkg); return 0; } catch (const toml::parse_error& e) { std::cerr << "Parse error:\n" << e << '\n'; return 1; } catch (const std::exception& e) { std::cerr << "Error: " << e.what() << '\n'; return 1; } }