editbody

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: 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() *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) 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