Documentation
¶
Overview ¶
Package hooks implements the `atmos git hooks` command group: thin cobra wiring over pkg/git/hooks, which owns the shim install/run/uninstall logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{
Use: "hooks",
Short: "Manage local Git hook shims for the current repository",
Long: `Manage .git/hooks shims that delegate to atmos git hooks run.
Subcommands:
install Write shim scripts into .git/hooks for configured hooks.
uninstall Remove Atmos-generated shims from .git/hooks.
run Execute the configured command for a named hook.`,
}
Command is the `atmos git hooks` parent command (with subcommands attached), registered by cmd/git.
Functions ¶
func SetAtmosConfig ¶
func SetAtmosConfig(config *schema.AtmosConfiguration)
SetAtmosConfig is called from cmd/git when root.go injects the configuration, making it available to all hooks subcommands.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.