- Generate stubs and
REGISTER_calls for commands matching the criteria and write them to a new file (Specified by--output, oroutput.cppby default)poetry run python -m app --klass <klass_name> --generate-register-calls
- Update existing file with docs, missing handlers and
REGISTER_calls by providing the--inputargument with the file to update, if no--outputis provided, the input file will be updated in place.Missing command handlers andpoetry run python -m app --input <file_to_update> --klass <klass_name> --generate-register-calls
REGISTER_calls for all commands matching the criteria will be added to the file, and missing docs will be added to existing handlers.
You can filter commands to be processed using:
--klassto regex match class names (e.g.--klass ^Char$to match onlyChar)--nameto regex match command names (e.g.--name ^GET_to match only commands starting withGET_)--extensionto regex match extension names (See here for available extensions - by defaultdefaultis used, which includes commands from vanilla SA only)
See --help for a full list of options
- Generate stubs for all commands in the
Charclass and write them tochar_stubs.cpp:poetry run python -m app --klass Char --output char_stubs.cpp
- Update
char_stubs.cppin-place with missing docs, stubs andREGISTER_calls for all commands in theCharclass:poetry run python -m app --input char_stubs.cpp --klass Char --generate-register-calls
For convenience the ./script-fox.sh script is provided to run the app without having to prefix commands with poetry run python -m app.
- All contributors of Sanny Builder Library - For providing the command and enums metadata