fome-fw
fome-fw copied to clipboard
handle special console commands with spaces in them
rough steps:
- in
cli_registry.h
, add something likeSTRING_RAW
to theaction_type_e
enum for "pass the whole arg string as one blob instead of parsing - add a new function to use it near
addConsoleActionS
named something likeaddConsoleActionRaw
- call that from
lua.cpp
nearaddConsoleActionS("lua",....
- implement handling
STRING_RAW
inhandleConsoleLineInternal
. It will require some special casing for skipping argument parsing when it matches a STRING_RAW. - add a test in
test_util.cpp
neartestConsoleLogic