Skip to Content
kusaw docsv1.0.0
CLI reference

kusaw candidates

List a run's best-of-N candidates, including compare-only stages

kusaw candidates

List a run's best-of-N candidates, including compare-only stages

Usage

Text
kusaw candidates <run> [flags]

Flags

NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--diffstringPrint the candidate's diff against the fork point (c or label)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for candidates
--jsonboolfalsePrint JSON
--scorecardboolfalsePrint the attempt scorecard

Subcommands

kusaw candidates dismiss

Delete kept candidate refs for a run

Text
kusaw candidates dismiss <run> [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for dismiss

Example:

Text
kusaw candidates dismiss demo

kusaw candidates pick

Replace the gathered winner while the run waits at a gate

Text
kusaw candidates pick <run> <candidate> [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for pick
--notestringNote stored with the pick

Example:

Text
kusaw candidates pick demo c2 --note "prefer the smaller diff"

kusaw candidates prune

Dismiss kept candidate refs on old runs

Text
kusaw candidates prune [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for prune
--older-thanstring30dDismiss refs on runs finished longer ago than this (for example 30d)

Example:

Text
kusaw candidates prune --older-than 30d

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 candidates demo --json

On this page