initcmd

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Overview

Package initcmd implements the `aiwf init` verb (per-verb subpackage of M-0116; directory and package are `initcmd` because `init` is a special Go function name).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

NewCmd builds `aiwf init`: writes aiwf.yaml, scaffolds entity directories, materializes skills, appends to .gitignore, writes a CLAUDE.md template, and installs the pre-push hook. No commit.

--dry-run reports the would-be ledger without touching disk. --skip-hook performs every other step but omits hook installation.

func Run

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

Run executes `aiwf init`. Returns one of the cliutil.Exit* codes. When `statusline` is true, also scaffolds the aiwf-aware Claude Code statusline (scope-appropriate destination; scaffold-if-absent, never clobbers a pre-existing copy). The scaffold action runs after the main init pipeline succeeds; a `--dry-run` init reports without scaffolding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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