hooks

package
v1.232.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

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