update

package
v0.22.0 Latest Latest
Warning

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

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

Documentation

Overview

Package update implements the `aiwf update ` 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 update`: refreshes every marker-managed framework artifact the consumer is opted into. The pipeline is the same one `aiwf init` runs after first-time scaffolding — `initrepo.RefreshArtifacts` — so init and update converge to the same state for a given binary version + aiwf.yaml.

Concretely the verb refreshes:

  • the embedded skills under .claude/skills/aiwf-*
  • the .gitignore patterns covering them
  • the marker-managed pre-push hook
  • the marker-managed pre-commit hook (gated by aiwf.yaml's status_md.auto_update; default-on)

Hook conflicts (a non-marker hook already in place) are reported in the per-step ledger and surface a remediation block, mirroring `aiwf init`'s conflict path.

func Run

func Run(root string, statusline bool, scope string, wireSettings bool) int

Run executes `aiwf update`. Returns one of the cliutil.Exit* codes. When `statusline` is true, also runs the shared statusline scaffold (scope-appropriate destination, byte-refreshed on every update). The scaffold action runs after the artifact refresh succeeds.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL