CLI reference
kusaw routing
Test routing rules without adding a task
kusaw routing
Test routing rules without adding a task
Usage
kusaw routing [flags]Flags
| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for routing |
Subcommands
kusaw routing test
Show which rule would match a spec, without adding a task
kusaw routing test <spec-file> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--classify | bool | false | Also run the classify provider | |
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for test |
--label | stringArray | Item label; repeat for each | ||
--source | string | add | Routing source (add, intake, inbox:, triage:, connector:) | |
--type | string | Item type |
Example:
kusaw routing test specs/demo.md --type bugExit codes
| Code | Name | Description |
|---|---|---|
| 0 | ok | Success. |
| 1 | error | Runtime error. |
| 2 | usage | Usage or validation error. |
| 3 | rejected | Control request rejected; the error string is printed verbatim. |
| 4 | not picked up | Control request not picked up within the wait time while serve runs. |
Example
kusaw routing test specs/demo.md --type bug