claude

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHooksStatus

func CheckHooksStatus(projectPath string) (bool, error)

func PreviewChanges

func PreviewChanges(projectPath string) (string, error)

Types

type ClaudeSettings

type ClaudeSettings struct {
	Permissions *Permissions `json:"permissions,omitempty"`
	Hooks       *Hooks       `json:"hooks,omitempty"`
}

type Hook

type Hook struct {
	Type    string `json:"type"`
	Command string `json:"command"`
}

type HookGroup

type HookGroup struct {
	Hooks []Hook `json:"hooks"`
}

type Hooks

type Hooks struct {
	Stop         []HookGroup `json:"Stop,omitempty"`
	Notification []HookGroup `json:"Notification,omitempty"`
}

type InstallResult

type InstallResult struct {
	Created       bool
	Updated       bool
	AlreadyExists bool
	BackupCreated bool
	BackupPath    string
	Message       string
}

func InstallHooks

func InstallHooks(projectPath string, force bool, createBackup bool) (*InstallResult, error)

type Permissions

type Permissions struct {
	Allow []string `json:"allow,omitempty"`
	Deny  []string `json:"deny,omitempty"`
	Ask   []string `json:"ask,omitempty"`
}

Jump to

Keyboard shortcuts

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