hooks

package
v0.0.0-...-a7df6f9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasHook

func HasHook(hookName string, module *modules.Versions) bool

HasHook checks if the module has an annotation defining the named hook

func RunHook

func RunHook(hookName string, module *modules.Versions, repositoryRoot string, arguments []string) (string, error)

RunHook executes the hook of the given name and returns it's output when successful. A list of arguments can be passed in.

The value of the hook must be an executable with a path relative to the repository root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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