hooks

package
v1.222.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 9 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 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