Kelsidavis-WoWee/tools/editor/cli_strip.hpp
Kelsi 3d52d5fd20 refactor(editor): extract --strip-zone / --strip-project into cli_strip.cpp
Moves the two cleanup-pass handlers (--strip-zone,
--strip-project) out of main.cpp into a new
cli_strip.{hpp,cpp} module. Both remove derived outputs
(.glb / .obj / .stl / .html / .dot / .csv / .png /
ZONE.md / DEPS.md) leaving only source files. Useful before
--pack-wcp so archives don't carry redundant exports, and
before committing to git so derived blobs don't bloat
history. Both honor --dry-run for safe previews.

main.cpp shrinks by 164 lines (4,110 to 3,946).
2026-05-09 08:56:47 -07:00

21 lines
735 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the strip-* cleanup handlers — remove derived
// outputs (.glb / .obj / .stl / .html / .dot / .csv / .png /
// ZONE.md / DEPS.md) leaving only source files. Useful before
// --pack-wcp so archives don't carry redundant exports, or
// before committing to git so derived blobs don't bloat
// history. Both honor --dry-run for safe previews.
// --strip-zone clean one zone's top-level derived files
// --strip-project walk every zone in a project, per-zone report
//
// Returns true if matched; outRc holds the exit code.
bool handleStrip(int& i, int argc, char** argv, int& outRc);
} // namespace cli
} // namespace editor
} // namespace wowee