Claude.Hooks.Hook (claude v0.2.3)

View Source

Struct representing a Claude Code hook configuration.

This struct is automatically encoded to JSON for the settings.json file.

Summary

Functions

Creates a new hook configuration.

Types

t()

@type t() :: %Claude.Hooks.Hook{command: String.t(), type: String.t()}

Functions

new(attrs)

Creates a new hook configuration.