mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
refactor(editor): extract item-export handlers into cli_items_export.cpp
Moves the three item-export handlers (--export-zone-items-md,
--export-project-items-md, --export-project-items-csv) out of
main.cpp into a new cli_items_export.{hpp,cpp} module. All
three render items.json data as human-readable Markdown / CSV
reports for design docs, PR descriptions, GitHub Pages, and
spreadsheet pivot-table workflows.
main.cpp shrinks by 262 lines (5,349 to 5,087).
This commit is contained in:
parent
84403027ae
commit
44c1c60db3
4 changed files with 336 additions and 266 deletions
19
tools/editor/cli_items_export.hpp
Normal file
19
tools/editor/cli_items_export.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
namespace wowee {
|
||||
namespace editor {
|
||||
namespace cli {
|
||||
|
||||
// Dispatch the item-export handlers — render items.json as
|
||||
// human-readable Markdown / CSV reports for design docs and
|
||||
// pivot-table workflows.
|
||||
// --export-zone-items-md per-zone Markdown by quality
|
||||
// --export-project-items-md project-wide Markdown rollup
|
||||
// --export-project-items-csv project-wide CSV (zone in col 1)
|
||||
//
|
||||
// Returns true if matched; outRc holds the exit code.
|
||||
bool handleItemsExport(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