Documentation
¶
Overview ¶
Package cli provides CLI discovery and command building functionality.
Index ¶
- Variables
- func BuildCommand(cliPath string, options *shared.Options, closeStdin bool) []string
- func BuildCommandWithPrompt(cliPath string, options *shared.Options, prompt string) []string
- func DetectCLIVersion(ctx context.Context, cliPath string) (string, error)
- func FindCLI() (string, error)
- func ValidateNodeJS() error
- func ValidateWorkingDirectory(cwd string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DiscoveryPaths = []string{}
DiscoveryPaths defines the standard search paths for Claude CLI.
Functions ¶
func BuildCommand ¶
BuildCommand constructs the CLI command with all necessary flags.
func BuildCommandWithPrompt ¶
BuildCommandWithPrompt constructs the CLI command for one-shot queries with prompt as argument.
func DetectCLIVersion ¶
DetectCLIVersion detects the Claude CLI version for compatibility checks.
func ValidateWorkingDirectory ¶
ValidateWorkingDirectory checks if the working directory exists and is valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.