cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func GetClaudeBinaryPath

func GetClaudeBinaryPath() string

GetClaudeBinaryPath returns the path to the claude binary. If --claude-bin flag is set, returns that path. Otherwise returns "claude".

func IsVerbose

func IsVerbose() bool

IsVerbose returns whether verbose mode is enabled.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd returns a new root command instance (useful for testing) This creates a fresh command tree to avoid flag pollution between tests

Types

type SessionCreateParams

type SessionCreateParams struct {
	Name                    string
	Model                   string
	SystemPrompt            string // inline content (append mode)
	SystemPromptFile        string // path to read from (append mode)
	ReplaceSystemPrompt     string // inline content (replace mode)
	ReplaceSystemPromptFile string // path to read from (replace mode)
	PermissionMode          string
	AllowedTools            []string
	DisallowedTools         []string
	AdditionalDirs          []string
	OutputStyle             string // built-in style, custom style name, or inline content
	OutputStyleFile         string // path to custom style file
	Incognito               bool
}

SessionCreateParams holds parameters for creating a new session.

type SessionCreateResult

type SessionCreateResult struct {
	ClotildeRoot     string
	Session          *session.Session
	SettingsFile     string
	SystemPromptFile string
}

SessionCreateResult holds the created session and file paths.

Jump to

Keyboard shortcuts

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