scaffoldhooks

package
v1.223.1-rc.2 Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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