parse_custom_commands
main.parse_custom_commands(raw_commands, linters)
Parse, validate, and warn on custom commands.
Parameters
| raw_commands |
list[str] |
Raw custom command strings provided via repeated --custom-commands arguments. |
required |
| linters |
Linters |
Supported linter registry, used to warn when a custom command executable matches a built-in supported linter. |
required |
Returns
| custom_commands |
list[list[str]] |
List of parsed custom commands, where each command is stored as a tokenised list of strings suitable for subprocess execution. |