mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 19:13:52 +00:00
feat(editor): add --catalog-grep search-by-name across content tree
Recursively walks a directory, parses the standard catalog header (magic + version + name + entryCount) of every recognized catalog format, and reports files whose internal catalog NAME field matches a pattern. Useful when you've got a content bundle and need to find "where is the catalog named WintergraspUI?" or "list every Starter* preset in this directory" without per-format parsing. Case-insensitive substring match by default (--case-sensitive opts in to literal match). Returns exit 1 when no match — designed for shell composition (`if catalog-grep ... ; then ...`). World/asset formats (.wom/.wob/.whm/.wot/.wow) are skipped since they don't follow the catalog-header layout. Supports --json variant for tooling integration. Reuses cli_format_table.cpp so any new catalog format is searchable automatically.
This commit is contained in:
parent
b8e039f834
commit
34c7021e5c
6 changed files with 185 additions and 0 deletions
|
|
@ -1361,6 +1361,8 @@ void printUsage(const char* argv0) {
|
|||
std::printf(" CI integrity check: open every recognized .w* file in <dir>, parse standard header, report PASS/FAIL + extension mismatches. Exit 1 on any failure\n");
|
||||
std::printf(" --tree-summary-md <dir> [out.md]\n");
|
||||
std::printf(" Emit a Markdown report of a content tree (per-format counts + per-file detail with catalog name + entry count). Stdout if no out path\n");
|
||||
std::printf(" --catalog-grep <pattern> <dir> [--case-sensitive] [--json]\n");
|
||||
std::printf(" Recursively search catalog NAMES (the internal name field) across .w* files in <dir>. Case-insensitive by default. Exit 1 if no match\n");
|
||||
std::printf(" --gen-animations <wani-base> [name]\n");
|
||||
std::printf(" Emit .wani starter: 5 essential animations (Stand / Walk / Run / Death / AttackUnarmed) with fallback chains\n");
|
||||
std::printf(" --gen-animations-combat <wani-base> [name]\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue