editbody

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package editbody implements the `aiwf edit-body` verb (per-verb subpackage of M-0115; cmd/aiwf/main.go's newRootCmd wires it via NewCmd). The package directory is `editbody` (no separator) per Go's package-name convention; the verb's external name on the CLI remains `edit-body` (hyphenated, the user-facing form).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(correlationID string) *cobra.Command

NewCmd builds `aiwf edit-body <id> --body-file <path>` (and `--body-file -` for stdin) — the post-creation body-edit verb that closes the plain-git carve-out from G-052 / M-058. Frontmatter is untouched; only the markdown body below the frontmatter delimiter is replaced. One commit per invocation, standard provenance.

func Run

func Run(id, actor, principal, root, reason, bodyFile string, out cliutil.OutputFormat) (code int)

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