- Add repos { } block to system config with named repos, channels,
mirrors, and priority
- Add index "name" { } file format for package indexes
- Add kappa index <dir> subcommand that scans .kap files and
generates index.kap
- parse_index() and build_index() in DSL module
- format_index() roundtrip support in tools module
- validate and format subcommands handle all three formats
(package, config, index) with automatic detection
- Backward compatible: remotes = [...] still works unchanged
15 lines
349 B
C++
15 lines
349 B
C++
#pragma once
|
|
|
|
#include "kappa/dsl/ast.hpp"
|
|
#include "kappa/dsl/system.hpp"
|
|
|
|
#include <ostream>
|
|
|
|
namespace kappa::tools {
|
|
|
|
void format_package(std::ostream& os, const dsl::PackageDef& pkg);
|
|
void format_config(std::ostream& os, const dsl::SystemConfig& cfg);
|
|
void format_index(std::ostream& os, const dsl::IndexDef& idx);
|
|
|
|
} // namespace kappa::tools
|