hooks

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package hooks manages leo-owned entries inside Claude Code's .claude/settings.local.json file in a session's workspace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureLeoStopHook

func EnsureLeoStopHook(workspace string) error

EnsureLeoStopHook idempotently merges the leo-managed Stop hook into <workspace>/.claude/settings.local.json. Preserves all non-leo entries. Atomic write via os.Rename. Refuses (returns error) if the existing file contains malformed JSON rather than clobber user data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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