param

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Cache    bool
	Operator core.Operator
}

func NewCheck

func NewCheck(operator core.Operator) *Check

type Collect

type Collect struct {
	Stream string
	Max    int
	Trim   *Trim
}

func NewCollect

func NewCollect() *Collect

func (*Collect) Process

func (c *Collect) Process(line string) (final string)

type Command

type Command struct {
	Context     context.Context
	Name        string
	Arguments   *args.Arguments
	Directory   string
	Environment *Environment

	Async   bool
	Pwe     bool
	Echo    bool
	Stdin   io.Reader
	Charset string

	Logics     []*core.Logic
	Collectors map[string]core.Collector
	Notifiers  []core.Notifier
	Counters   []core.Counter
}

func NewCommand

func NewCommand(name string) *Command

func (*Command) Check

func (c *Command) Check(line string) (checked bool, err error)

type Environment

type Environment struct {
	Environments []string
	System       bool
}

func NewEnvironment

func NewEnvironment() *Environment

type Line

type Line struct {
	Stream string
	Total  *int
}

func NewLine

func NewLine(total *int) *Line

type Trim

type Trim struct {
	Left  string
	Right string
	All   string
	Space bool
}

func NewTrim

func NewTrim() *Trim

func (*Trim) Process

func (t *Trim) Process(line string) (final string)

Jump to

Keyboard shortcuts

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