Documentation
¶
Overview ¶
Package cancel implements the `aiwf cancel` verb. It is the per-verb subpackage that cmd/aiwf/main.go's newRootCmd wires via NewCmd(); per the M-0115 pattern, every cmd/aiwf verb lives under internal/cli/<verb>/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmd ¶
NewCmd builds `aiwf cancel <id> [--reason "..."]`. The verb is the kind-aware terminal-cancel transition: an epic cancels to "cancelled", a gap to "wontfix", an ADR to "rejected", etc. — the per-kind FSM target lives in entity.AllowedTransitions and the verb layer.
func Run ¶
func Run(id, actor, principal, root, reason string, force, auditOnly bool, out cliutil.OutputFormat) (code int)
Run executes `aiwf cancel`. Returns one of the cliutil.Exit* codes; the caller (RunE in NewCmd) wraps the int in cliutil.WrapExitCode so Cobra's RunE channel preserves the exit code through the run() dispatcher.
Types ¶
This section is empty.