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 ¶
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.