Kelsidavis-WoWee/tools/editor/cli_project_inventory.hpp
Kelsi a773654be5 refactor(editor): extract project inventory into cli_project_inventory.cpp
Pairs with the per-zone inventory module from c0f2ab75. Moves
the five project-wide inventory handlers into their own file:

  --list-project-meshes        (per-zone WOM aggregate)
  --list-project-meshes-detail (per-mesh sorted listing)
  --list-project-audio         (per-zone WAV aggregate)
  --list-project-textures      (per-zone + global texture refs)
  --info-project-summary       (BOOTSTRAPPED/PARTIAL/EMPTY rollup)

All five enumerate zones the same way; consolidated that into
a shared enumerateZones() helper at file scope.

main.cpp drops 27,200 → 26,650 lines (-550). Behavior unchanged
across all 5 commands (verified against /tmp/proj_starter).
2026-05-08 18:47:06 -07:00

19 lines
649 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the five project-wide inventory handlers:
// --list-project-meshes (per-zone WOM aggregate)
// --list-project-meshes-detail (per-mesh sorted-by-tris listing)
// --list-project-audio (per-zone WAV aggregate)
// --list-project-textures (per-zone + global texture-ref histogram)
// --info-project-summary (per-zone BOOTSTRAPPED/PARTIAL/EMPTY)
//
// Returns true if matched; outRc holds the exit code.
bool handleProjectInventory(int& i, int argc, char** argv, int& outRc);
} // namespace cli
} // namespace editor
} // namespace wowee