mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-09 10:33:51 +00:00
Continues the modularization. Moves the four audit handlers (--validate-zone-pack, --validate-project-packs, --info-zone-deps, --info-project-deps) into their own file using the same handle<Family>(int& i, int argc, char** argv, int& outRc) pattern. Side-cleanup: the two project-scope audits had identical subprocess-fanout structure (enumerate zones → run per-zone command → tally PASS/FAIL → print summary). Consolidated that into a shared runPerZoneAudit helper. Saves ~80 lines of duplicated dispatch code. main.cpp drops 28,070 → 27,736 lines (-334). Audit family is fully self-contained (~330 lines), behavior unchanged (verified all 4 commands against existing test zones).
19 lines
479 B
C++
19 lines
479 B
C++
#pragma once
|
|
|
|
namespace wowee {
|
|
namespace editor {
|
|
namespace cli {
|
|
|
|
// Dispatch the four audit / dep-check handlers:
|
|
// --validate-zone-pack
|
|
// --validate-project-packs
|
|
// --info-zone-deps
|
|
// --info-project-deps
|
|
//
|
|
// Returns true if matched; outRc holds the exit code. Returns
|
|
// false if no match — caller should continue its dispatch chain.
|
|
bool handleAudits(int& i, int argc, char** argv, int& outRc);
|
|
|
|
} // namespace cli
|
|
} // namespace editor
|
|
} // namespace wowee
|