Kelsidavis-WoWee/tools/editor/cli_audits.hpp
Kelsi ac17d04f8c refactor(editor): extract audit family into cli_audits.cpp
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).
2026-05-08 17:12:10 -07:00

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