promote

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 promote implements the `aiwf promote` verb (per-verb subpackage of M-0115; cmd/aiwf/main.go's newRootCmd wires it via NewCmd).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

NewCmd builds `aiwf promote <id> <new-status>` and the I2 composite / --phase variants:

aiwf promote E-01 active                       (top-level entity)
aiwf promote M-007/AC-1 met                    (composite, status mode)
aiwf promote M-007/AC-1 --phase green          (composite, phase mode)

--phase is mutex with the positional new-status: pass one or the other, never both. --phase is only valid for composite ids; using it on a top-level entity is a usage error.

func Run

func Run(args []string, actor, principal, root, reason,
	phase, tests, by, byCommit, supersededBy string, force, auditOnly bool,
) int

Run executes `aiwf promote`. 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