retitle

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 retitle implements the `aiwf retitle ` verb (per-verb subpackage of M-0116; 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 retitle <id|composite-id> <new-title> [--reason "..."]`. Title mutation: updates the entity's frontmatter `title:`; for top-level entities also re-derives the on-disk slug (G-0108) and syncs a canonical `# <ID> — <title>` body H1 if one is present (G-0083); for composite ids regenerates the matching `### AC-N — <title>` body heading inside the parent milestone. Closes G-065 — the asymmetry where `aiwf rename` exists for slugs but no verb exists for titles.

Two positional arguments matching `aiwf rename`'s shape: id (or M-NNN/AC-N), new-title. The optional `--reason` flag lands in the commit body and surfaces in `aiwf history`, matching the pattern from `aiwf promote`/`cancel`/`authorize`/`edit-body`.

func Run

func Run(id, newTitle, actor, principal, root, reason string) int

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