Kelsidavis-WoWee/tools/editor/cli_items.hpp
Kelsi 59ae675b78 refactor(editor): extract 5 item read-only handlers into cli_items.cpp
Moves the items.json read-only inspection handlers out of
main.cpp:
  --list-items            --info-item
  --validate-items        --validate-project-items
  --info-project-items

Item editing handlers (--add-item, --set-item, --remove-item,
--add-quest-reward-item) stay in main.cpp since they share
state with quest reward editing logic and would need a
broader extraction.

main.cpp drops 13,887 → 13,485 lines (-402). Behavior
verified by re-running --list-items on a non-items zone
(same error message).
2026-05-09 05:19:04 -07:00

21 lines
576 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the items.json read-only inspection handlers:
// --list-items --info-item
// --validate-items --validate-project-items
// --info-project-items
//
// Item editing commands (--add-item, --set-item, --remove-item)
// stay in main.cpp since they share state with quest reward
// editing logic.
//
// Returns true if matched; outRc holds the exit code.
bool handleItems(int& i, int argc, char** argv, int& outRc);
} // namespace cli
} // namespace editor
} // namespace wowee