class
Obsctl::Domain::CommandParser
- Obsctl::Domain::CommandParser
- Reference
- Object
Overview
Turns command input into typed command objects.
There are two entry points because there are two kinds of caller. The CLI already has its arguments split by the kernel and passes them through untouched; the TUI palette has a single line of text and tokenizes first. Argument values never round-trip through a quoted string, so names containing quotes, tabs, or backslashes survive intact.
Defined in:
obsctl/domain/command_parser.crConstant Summary
-
MAX_TARGET_TOKEN_LENGTH =
256
Instance Method Summary
-
#parse(argv : Array(String)) : Command
Parses an already-split argument vector, e.g.
-
#parse(input : String) : Command
Parses one command line, including quoted arguments.
Instance Method Detail
Parses an already-split argument vector, e.g. ["scene", "Main Camera"].
Shell words arrive with their quoting already resolved, so nothing here is treated as quoted.
Parses one command line, including quoted arguments.