mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
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).
This commit is contained in:
parent
51ed1e5860
commit
3d52d5fd20
4 changed files with 231 additions and 168 deletions
21
tools/editor/cli_strip.hpp
Normal file
21
tools/editor/cli_strip.hpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue