cli

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package cli provides CLI discovery and command building functionality.

Index

Constants

This section is empty.

Variables

View Source
var DiscoveryPaths = []string{}

DiscoveryPaths defines the standard search paths for Claude CLI.

Functions

func BuildCommand

func BuildCommand(cliPath string, options *shared.Options, closeStdin bool) []string

BuildCommand constructs the CLI command with all necessary flags.

func BuildCommandWithPrompt

func BuildCommandWithPrompt(cliPath string, options *shared.Options, prompt string) []string

BuildCommandWithPrompt constructs the CLI command for one-shot queries with prompt as argument.

func DetectCLIVersion

func DetectCLIVersion(ctx context.Context, cliPath string) (string, error)

DetectCLIVersion detects the Claude CLI version for compatibility checks.

func FindCLI

func FindCLI() (string, error)

FindCLI searches for the Claude CLI binary in standard locations.

func ValidateNodeJS

func ValidateNodeJS() error

ValidateNodeJS checks if Node.js is available.

func ValidateWorkingDirectory

func ValidateWorkingDirectory(cwd string) error

ValidateWorkingDirectory checks if the working directory exists and is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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