cancel

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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

func NewCmd() *cobra.Command

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) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL