rewidth

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

Documentation

Overview

Package rewidth implements the `aiwf rewidth` verb (per-verb subpackage of M-0116; cmd/aiwf/main.go 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 rewidth [--apply] [--root <path>]`.

Default invocation (no `--apply`) is dry-run: the verb computes a Plan and the dispatcher prints a per-kind summary of what would happen. `--apply` runs verb.Apply against the same Plan, producing exactly one git commit per kernel principle #7 with trailer `aiwf-verb: rewidth` (no `aiwf-entity:` trailer — multi-entity sweep, same shape as `aiwf archive`).

Per ADR-0008, this is a one-shot ritual: the canonical case for the "no skill when --help suffices" branch of ADR-0006. Every consumer runs it at most once after upgrading past the kernel version that declares the canonical-width policy. Idempotent re-runs are no-ops.

func Run

func Run(actor, principal, root string, apply, skipChecks bool) int

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