Documentation
¶
Overview ¶
Package scaffoldhooks runs a scaffold template's declarative hooks: block around atmos scaffold generate / atmos init. It reuses the exact hook schema and when: vocabulary that stack-level lifecycle hooks use (pkg/hooks.Hook), driving step-backed hooks (kind: step, kind: steps) through the same shared step-execution engine (pkg/runner/step) that workflows and custom commands use -- not a bespoke execution engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(hooksMap map[string]hooks.Hook, event hooks.HookEvent, answers map[string]any, status string, skipHooks func(string) bool) error
Run evaluates and executes every hook in hooksMap that matches event, in a stable (name-sorted) order, skipping any hook that the skipHooks predicate (implementing --skip-hooks) reports true for before event/when: evaluation, mirroring pkg/hooks' own --skip-hooks semantics.
Types ¶
This section is empty.