Help us shape the future of Go! Take the 2026 Go Developer Survey

hooks

package
v1.233.1 Latest Latest
Warning

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

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

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 or steps 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.

Jump to

Keyboard shortcuts

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