builder

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: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

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

func NewCheck

func NewCheck(builder *Command) *Check

func (*Check) And

func (c *Check) And(checker core.Checker) (check *Check)

func (*Check) Build

func (c *Check) Build() (command *Command)

func (*Check) Contains

func (c *Check) Contains(contains string) *Contains

func (*Check) Equal

func (c *Check) Equal(equal string) *Equal

func (*Check) Filepath

func (c *Check) Filepath(pattern string) *Filepath

func (*Check) Or

func (c *Check) Or(checker core.Checker) (check *Check)

func (*Check) Regexp

func (c *Check) Regexp(regexp string) *Regexp

type Collect

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

func NewCollect

func NewCollect(command *Command) *Collect

func (*Collect) Build added in v0.3.5

func (c *Collect) Build() (command *Command)

func (*Collect) By

func (c *Collect) By(collector core.Collector) (collect *Collect)

func (*Collect) String

func (c *Collect) String(target *string) *String

func (*Collect) Strings

func (c *Collect) Strings(target *[]string) *Strings

type Command

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

func NewCommand

func NewCommand(name string) *Command

func (*Command) Arguments

func (c *Command) Arguments(arguments *args.Arguments) (command *Command)

func (*Command) Async

func (c *Command) Async() (command *Command)

func (*Command) Build

func (c *Command) Build() *core.Command

func (*Command) Charset

func (c *Command) Charset(charset string) (command *Command)

func (*Command) Check

func (c *Command) Check() *Check

func (*Command) Collect

func (c *Command) Collect() *Collect

func (*Command) Context

func (c *Command) Context(ctx context.Context) (command *Command)

func (*Command) Count

func (c *Command) Count() *Count

func (*Command) Dir

func (c *Command) Dir(dir string) (command *Command)

func (*Command) Echo

func (c *Command) Echo() (command *Command)

func (*Command) Environment

func (c *Command) Environment() *Environment

func (*Command) Name added in v0.4.7

func (c *Command) Name(name string) (command *Command)

func (*Command) Notify

func (c *Command) Notify() *Notify

func (*Command) Pwe

func (c *Command) Pwe() (command *Command)

type Contains

type Contains struct {
	*internal.Check
	// contains filtered or unexported fields
}

func NewContains

func NewContains(command *Command, check *Check, target string) (contains *Contains)

func (*Contains) Build

func (c *Contains) Build() (check *Check)

type Count

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

func NewCount

func NewCount(command *Command) (counter *Count)

func (*Count) Build

func (c *Count) Build() (command *Command)

func (*Count) By

func (c *Count) By(by core.Counter) (count *Count)

func (*Count) Line

func (c *Count) Line(total *int) *Line

type Environment

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

func NewEnvironment

func NewEnvironment(command *Command) *Environment

func (*Environment) Build

func (e *Environment) Build() (command *Command)

func (*Environment) Kv

func (e *Environment) Kv(key string, value any) (environment *Environment)

func (*Environment) String

func (e *Environment) String(environments ...string) (environment *Environment)

type Equal

type Equal struct {
	*internal.Check
	// contains filtered or unexported fields
}

func NewEqual

func NewEqual(command *Command, check *Check, target string) (equal *Equal)

func (*Equal) Build

func (c *Equal) Build() (check *Check)

type Filepath

type Filepath struct {
	*internal.Check
	// contains filtered or unexported fields
}

func NewFilepath

func NewFilepath(command *Command, check *Check, target string) (filepath *Filepath)

func (*Filepath) Build

func (c *Filepath) Build() (check *Check)

type Line

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

func NewLine

func NewLine(count *Count, total *int) *Line

func (*Line) Build

func (l *Line) Build() (cnt *Count)

func (*Line) Stderr

func (l *Line) Stderr() (line *Line)

func (*Line) Stdout

func (l *Line) Stdout() (line *Line)

type Notify

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

func NewNotify

func NewNotify(command *Command) *Notify

func (*Notify) Build

func (n *Notify) Build() (command *Command)

func (*Notify) By

func (n *Notify) By(by core.Notifier) (notify *Notify)

type Regexp

type Regexp struct {
	*internal.Check
	// contains filtered or unexported fields
}

func NewRegexp

func NewRegexp(command *Command, check *Check, target string) (regexp *Regexp)

func (*Regexp) Build

func (c *Regexp) Build() (check *Check)

type String

type String struct {
	*internal.Collect
	// contains filtered or unexported fields
}

func NewString

func NewString(command *Command, collect *Collect, target *string) (str *String)

func (*String) Build

func (s *String) Build() (collect *Collect)

type Strings

type Strings struct {
	*internal.Collect
	// contains filtered or unexported fields
}

func NewStrings

func NewStrings(command *Command, collect *Collect, target *[]string) (strings *Strings)

func (*Strings) Build

func (s *Strings) Build() (collect *Collect)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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