parser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 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 Parser

type Parser struct {
	Data        string
	Headers     []string
	Help        bool
	Interactive bool
	LogLevel    slog.Level
	Silent      bool
	Version     bool
	// contains filtered or unexported fields
}

func (*Parser) Parse

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

func (Parser) ParseData

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

func (*Parser) Prompt

func (p *Parser) Prompt() string

func (*Parser) Prompts

func (p *Parser) Prompts() bool

func (*Parser) Resource

func (p *Parser) Resource() string

func (*Parser) Resources

func (p *Parser) Resources() bool

func (*Parser) Tool

func (p *Parser) Tool() string

func (*Parser) Tools

func (p *Parser) Tools() bool

func (*Parser) TransportArgs

func (p *Parser) TransportArgs() []string

Jump to

Keyboard shortcuts

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