Skip to content

Commit 4b50e1e

Browse files
feat: improve CLI help menu and command descriptions (#32)
- Update main CLI description to match README tagline - Enhance init command description with detailed TypeScript features - Improve session command description with usage examples - Remove unused @oclif/plugin-plugins dependency - Make all help content more descriptive and actionable 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <[email protected]>
1 parent 8e068f7 commit 4b50e1e

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "claude-hooks",
3-
"description": "CLI to initialize Claude Code hooks in your project",
3+
"description": "TypeScript-powered hook system for Claude Code - write hooks with full type safety and auto-completion",
44
"version": "1.1.7",
55
"author": "John Lindquist @johnlindquist",
66
"bin": {
@@ -10,7 +10,6 @@
1010
"dependencies": {
1111
"@oclif/core": "^4",
1212
"@oclif/plugin-help": "^6",
13-
"@oclif/plugin-plugins": "^5",
1413
"chalk": "^5.4.1",
1514
"fs-extra": "^11.3.0",
1615
"ora": "^8.2.0"
@@ -65,8 +64,7 @@
6564
"dirname": "claude-hooks",
6665
"commands": "./dist/commands",
6766
"plugins": [
68-
"@oclif/plugin-help",
69-
"@oclif/plugin-plugins"
67+
"@oclif/plugin-help"
7068
],
7169
"topicSeparator": " "
7270
},

src/commands/init.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@ import ora from 'ora'
88
export default class Init extends Command {
99
static description = `Initialize Claude Code hooks in your project
1010
11-
This command sets up basic Claude Code hooks in your project:
11+
Sets up a TypeScript-powered hook system for Claude Code with full type safety:
1212
• Creates settings.json (or settings.json.local with --local flag) with hook configuration
13-
• Generates index.ts with session-saving handlers for all hook types (including SubagentStop)
14-
• Creates lib.ts with base utilities for hook management
15-
• Saves session data to system temp directory`
13+
• Generates index.ts with TypeScript handlers for all hook types (PreToolUse, PostToolUse, Notification, Stop, SubagentStop)
14+
• Creates lib.ts with strongly-typed payload interfaces and utilities
15+
• Sets up session.ts for optional session tracking
16+
• Initializes a Bun project with TypeScript configuration
17+
• Saves session data to system temp directory
18+
19+
Requirements:
20+
• Node.js >= 18.0.0
21+
• Bun runtime (https://bun.sh)`
1622

1723
static examples = [
1824
{

src/commands/session.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ import fs from 'fs-extra'
88
export default class Session extends Command {
99
static description = `Open the latest Claude session log
1010
11-
This command finds and opens the most recent session log file from the system temp directory.`
11+
Finds and opens Claude hook session logs for debugging and analysis:
12+
• Opens the most recent session log by default
13+
• Lists all available sessions with --list flag
14+
• Opens a specific session by ID with --id flag
15+
• Session logs contain detailed hook execution data and payloads
16+
• Logs are stored in: <system-temp-dir>/claude-hooks-sessions/`
1217

1318
static examples = [
1419
{

test/integration/cli.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe('CLI Integration Tests', () => {
9898
encoding: 'utf8',
9999
})
100100

101-
expect(output).to.include('CLI to initialize Claude Code hooks')
101+
expect(output).to.include('TypeScript-powered hook system for Claude Code')
102102
expect(output).to.include('COMMANDS')
103103
expect(output).to.include('init')
104104
})

0 commit comments

Comments
 (0)