add

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: 10 Imported by: 0

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

func NewCmd() *cobra.Command

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, relatesTo, linkedADRs,
	bindValidator, bindSchema, bindFixtures, bodyFile string,
) int

Run executes `aiwf add <kind>`. Returns one of the cliutil.Exit* codes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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