Documentation
¶
Index ¶
- type ClaudeCodeLauncher
- func (l *ClaudeCodeLauncher) Execute(ctx context.Context, prompt string, opts ExecuteOptions) (*Result, error)
- func (l *ClaudeCodeLauncher) ExecuteWithTimeout(ctx context.Context, prompt string, timeout time.Duration, opts ExecuteOptions) (*Result, error)
- func (l *ClaudeCodeLauncher) GetCLIInfo() map[string]string
- func (l *ClaudeCodeLauncher) IsAvailable() bool
- func (l *ClaudeCodeLauncher) SetCLIPath(path string)
- func (l *ClaudeCodeLauncher) SetSkipPermissions(enabled bool)
- type ExecuteOptions
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaudeCodeLauncher ¶
type ClaudeCodeLauncher struct {
// contains filtered or unexported fields
}
ClaudeCodeLauncher handles Claude Code CLI execution
func NewClaudeCodeLauncher ¶
func NewClaudeCodeLauncher() *ClaudeCodeLauncher
NewClaudeCodeLauncher creates a new Claude Code launcher
func (*ClaudeCodeLauncher) Execute ¶
func (l *ClaudeCodeLauncher) Execute(ctx context.Context, prompt string, opts ExecuteOptions) (*Result, error)
Execute runs Claude Code with the given prompt
func (*ClaudeCodeLauncher) ExecuteWithTimeout ¶
func (l *ClaudeCodeLauncher) ExecuteWithTimeout(ctx context.Context, prompt string, timeout time.Duration, opts ExecuteOptions) (*Result, error)
ExecuteWithTimeout runs Claude Code with a specific timeout
func (*ClaudeCodeLauncher) GetCLIInfo ¶
func (l *ClaudeCodeLauncher) GetCLIInfo() map[string]string
GetCLIInfo returns information about available Claude Code CLI
func (*ClaudeCodeLauncher) IsAvailable ¶
func (l *ClaudeCodeLauncher) IsAvailable() bool
IsAvailable checks if Claude Code CLI is available
func (*ClaudeCodeLauncher) SetCLIPath ¶
func (l *ClaudeCodeLauncher) SetCLIPath(path string)
SetCLIPath sets an explicit CLI path
func (*ClaudeCodeLauncher) SetSkipPermissions ¶
func (l *ClaudeCodeLauncher) SetSkipPermissions(enabled bool)
SetSkipPermissions enables or disables skip permissions mode
type ExecuteOptions ¶
type ExecuteOptions struct {
ProjectPath string
}
ExecuteOptions controls Claude Code execution
Click to show internal directories.
Click to hide internal directories.