Skip to content

Commit 3e38b5d

Browse files
semsem
authored andcommitted
feat: Add complete hook management commands
- Add enable/disable commands to toggle hooks on/off - Add create command with interactive hook template - Add edit command to open hooks in editor - Add remove command to delete hooks - Add config command to edit settings.json - Enhanced interactive menu with management sections - Update README with all new commands - Bump version to 2.2.0
1 parent 658b192 commit 3e38b5d

3,739 files changed

Lines changed: 151118 additions & 10 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
![npm version](https://img.shields.io/npm/v/claude-code-hooks.svg)
55
![npm downloads](https://img.shields.io/npm/dm/claude-code-hooks.svg)
6-
![Version](https://img.shields.io/badge/version-2.1.0-blue.svg)
6+
![Version](https://img.shields.io/badge/version-2.2.0-blue.svg)
77
![License](https://img.shields.io/badge/license-MIT-green.svg)
88
![Hooks](https://img.shields.io/badge/hooks-17-orange.svg)
99
![Python](https://img.shields.io/badge/python-3.6+-blue.svg)
@@ -120,6 +120,14 @@ claude-hooks doctor
120120
# Initialize hooks for current project (NEW!)
121121
claude-hooks init
122122

123+
# Hook Management Commands (NEW!)
124+
claude-hooks enable <hook-name> # Enable a disabled hook
125+
claude-hooks disable <hook-name> # Disable a hook temporarily
126+
claude-hooks create <hook-name> # Create a new custom hook
127+
claude-hooks edit <hook-name> # Edit an existing hook
128+
claude-hooks remove <hook-name> # Remove a hook permanently
129+
claude-hooks config # Edit Claude Code settings
130+
123131
# Run the comprehensive test suite
124132
claude-hooks test
125133

docs/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@ All notable changes to Claude Code Hooks will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.2.0] - 2025-01-03
9+
10+
### 🛠️ Complete Hook Management Suite
11+
12+
This release adds comprehensive hook management capabilities to the CLI.
13+
14+
### Added
15+
16+
#### 🎯 Hook Management Commands
17+
- **Enable/Disable** - `claude-hooks enable/disable <hook>` toggles hooks on/off
18+
- **Create** - `claude-hooks create <name>` generates new custom hooks with templates
19+
- **Edit** - `claude-hooks edit <hook>` opens hooks in your preferred editor
20+
- **Remove** - `claude-hooks remove <hook>` permanently deletes hooks
21+
- **Config** - `claude-hooks config` edits Claude Code settings.json
22+
23+
#### 🎨 Enhanced Interactive Menu
24+
- Added "Hook Management" section with all new commands
25+
- Added "Configuration" section for settings and project setup
26+
- Better organization with separators
27+
28+
### Changed
29+
- Enable/disable commands now fully functional (no longer "coming soon")
30+
- Interactive menu now includes all management options
31+
- Better error handling for all commands
32+
833
## [2.1.0] - 2025-01-03
934

1035
### 🎨 Enhanced CLI Experience

0 commit comments

Comments
 (0)