cmd

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root command and maps any error to a user-friendly CLIError before exiting with a non-zero status.

Types

type HookInput added in v0.6.0

type HookInput struct {
	SessionID      string `json:"session_id"`
	TranscriptPath string `json:"transcript_path"`
	Cwd            string `json:"cwd"`
	HookEventName  string `json:"hook_event_name"`
	Reason         string `json:"reason"`  // SessionEnd: clear|logout|prompt_input_exit|other
	Trigger        string `json:"trigger"` // PreCompact: manual|auto
	Source         string `json:"source"`  // SessionStart: startup|resume|clear|compact
}

HookInput is the JSON Claude Code writes to the hook's stdin.

Jump to

Keyboard shortcuts

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