parser

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidUsage = errors.New("invalid usage")
)

Functions

This section is empty.

Types

type Arguments added in v0.2.0

type Arguments struct {
	// Data
	Data          string
	Headers       []string
	LogLevel      slog.Level
	LLMBaseURL    string
	LLMApiKey     string
	LLMName       string
	Silent        bool
	TransportArgs []string

	// Actions
	Help        bool
	Interactive bool
	Msg         string
	Prompt      string
	Prompts     bool
	Resource    string
	Resources   bool
	Tool        string
	Tools       bool
	Version     bool

	HistoryFile    string
	LLMContextFile string
}

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (*Parser) Arguments added in v0.2.0

func (p *Parser) Arguments() Arguments

func (*Parser) Parse

func (p *Parser) Parse(args []string) error

func (Parser) ParseData

func (p Parser) ParseData(arg string) (string, error)

func (Parser) ParseHeader added in v0.2.0

func (p Parser) ParseHeader(header string) ([]string, error)

Jump to

Keyboard shortcuts

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