cli

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "1.5.0"
)

Version information

Variables

This section is empty.

Functions

func ProcessCLICommand

func ProcessCLICommand(args []string) error

ProcessCLICommand processes CLI commands with flags and arguments

Types

type Command

type Command string

Command represents a CLI command type.

const (
	CommandAsk     Command = "ask"
	CommandSuggest Command = "suggest"
	CommandExplain Command = "explain"
	CommandModels  Command = "models"
	CommandVersion Command = "version"
	CommandHelp    Command = "help"
)

type CommandOptions

type CommandOptions struct {
	Model        string
	Context      string
	Include      string
	SystemPrompt string
	StreamMode   bool
}

CommandOptions holds options for CLI commands

Jump to

Keyboard shortcuts

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