Kelsidavis-WoWee/tools/editor/cli_info_tree.hpp
Kelsi 7950648943 refactor(editor): extract --info-{zone,project}-tree into cli_info_tree.cpp
Moves the two tree-style content browser handlers
(--info-zone-tree, --info-project-tree) out of main.cpp into
a new cli_info_tree.{hpp,cpp} module. Both render
Unix-`tree`-style hierarchical views — one drilling into a
single zone (manifest, tiles, creatures, objects, quests,
files) and one giving a bird's-eye view of every zone in a
project with bake/viewer status.

main.cpp shrinks by 201 lines (8,140 to 7,939). The remaining
info-zone/-project-* pairs (bytes, extents, water, density,
audio) form the next natural extraction batch.
2026-05-09 07:10:12 -07:00

20 lines
690 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the tree-style content browser handlers — Unix
// `tree`-style hierarchical views of zone and project contents
// (manifest, tiles, creatures, objects, quests, files, baked
// artifacts). Designed for at-a-glance comprehension of what
// lives in a given directory without opening the JSON files.
// --info-zone-tree drill into one zone's contents
// --info-project-tree bird's-eye view of every zone in a project
//
// Returns true if matched; outRc holds the exit code.
bool handleInfoTree(int& i, int argc, char** argv, int& outRc);
} // namespace cli
} // namespace editor
} // namespace wowee