Documentation
¶
Overview ¶
Package add implements the `aiwf add` verb and its `aiwf add ac` subcommand (per-verb subpackage of M-0115; cmd/aiwf/main.go's newRootCmd wires it via NewCmd). Both verbs share the package so the Cobra subcommand wiring (`add ac` as a child of `add`) and the PersistentFlag-sharing pattern remain intact.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmd ¶
NewCmd builds `aiwf add <kind> --title "..." [kind-specific flags]` and the `aiwf add ac <milestone-id> --title "..."` sub-shape. ACs are modeled as a Cobra subcommand of add (matching their composite-id status as sub-elements of a milestone, not a kind in the schema sense). For the six top-level kinds, args[0] is the kind and the runtime validates kind-vs-flag relevance — same shape as pre-Cobra.
func Run ¶
func Run(k entity.Kind, title, actor, principal, root, epicID, tddPolicy, dependsOn, discoveredIn, area, priority, pathHint, relatesTo, linkedADRs, bindValidator, bindSchema, bindFixtures, bodyFile, bodyText, reason string, fetch, force bool, out cliutil.OutputFormat, ) (code int)
Run executes `aiwf add <kind>`. Returns one of the cliutil.Exit* codes.
Types ¶
This section is empty.