Skip to Content
kusaw docsv1.0.0
CLI reference

kusaw routing

Test routing rules without adding a task

kusaw routing

Test routing rules without adding a task

Usage

Text
kusaw routing [flags]

Flags

NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for routing

Subcommands

kusaw routing test

Show which rule would match a spec, without adding a task

Text
kusaw routing test <spec-file> [flags]
NameShortTypeDefaultDescription
--classifyboolfalseAlso run the classify provider
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for test
--labelstringArrayItem label; repeat for each
--sourcestringaddRouting source (add, intake, inbox:, triage:, connector:)
--typestringItem type

Example:

Text
kusaw routing test specs/demo.md --type bug

Exit codes

CodeNameDescription
0okSuccess.
1errorRuntime error.
2usageUsage or validation error.
3rejectedControl request rejected; the error string is printed verbatim.
4not picked upControl request not picked up within the wait time while serve runs.

Example

Text
kusaw routing test specs/demo.md --type bug

On this page