parser

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultParameterFactory

type DefaultParameterFactory interface {
	DefaultParameters() []entities.Parameter
}

type OSLayer

type OSLayer interface {
	LookupEnv(key string) (string, bool)
}

type ParameterFactory

type ParameterFactory interface {
	Parameters() []entities.Parameter
}

type Parser

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

func New

func New(
	osLayer OSLayer,
	defaultParameterFactory DefaultParameterFactory,
	parameterFactory ParameterFactory,
) *Parser

func (*Parser) Parse

func (p *Parser) Parse(args []string) ([]entities.Parameter, map[string]any, messages.Error)

func (*Parser) Usage

func (p *Parser) Usage() (string, messages.Error)

Jump to

Keyboard shortcuts

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