lifecyclehooks

package
v1.29.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveHooks

func ResolveHooks(reloaderConfig *v2.ReloaderConfig, typ HookType) (hooks []v2.LifecycleHookConfig)

func ResolveHooksInRepository

func ResolveHooksInRepository(caproniCfg *v2.CaproniConfig, repoName string, typ HookType) (hooks []v2.LifecycleHookConfig)

func RunHooks

func RunHooks(
	ctx context.Context,
	exec executor.CommandRunner,
	caproniCfg *v2.CaproniConfig,
	repoConfig *v2.RepositoryConfig,
	repoName string,
	hooks []v2.LifecycleHookConfig,
) error

Types

type HookType

type HookType string
const (
	// TypeEditModePrepare is a hook that runs after a repository is cloned or updated.
	TypeEditModePrepare HookType = "edit_mode_prepare"
	// TypeEditModeStart is a hook that runs before starting an edit mode process.
	TypeEditModeStart HookType = "edit_mode_start"
	// TypeEditModeStop is a hook that runs after an edit mode process exits, regardless of exit code.
	TypeEditModeStop HookType = "edit_mode_stop"
)

Jump to

Keyboard shortcuts

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