runner

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

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

func NewPrinter

func NewPrinter(w io.Writer) *Printer

func (*Printer) EndIndent

func (p *Printer) EndIndent()

func (*Printer) Indent

func (p *Printer) Indent(s string)

func (*Printer) PrintAlignedLn

func (p *Printer) PrintAlignedLn(left string, extra ...string)

func (*Printer) Println

func (p *Printer) Println(s string)

type Runner

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

func NewRunner

func NewRunner(steps ...Step) *Runner

func (*Runner) Run

func (r *Runner) Run() error

type Step

type Step interface {
	Run(*input.Input, *output.Output) error
}

type StepAmalgamated

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

func NewStepAmalgamated

func NewStepAmalgamated(name string, steps ...Step) *StepAmalgamated

func (*StepAmalgamated) Name

func (s *StepAmalgamated) Name() string

func (*StepAmalgamated) Run

func (s *StepAmalgamated) Run(i *input.Input, o *output.Output) error

type StepCodeGenerator

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

func NewStepCodeGenerator

func NewStepCodeGenerator(printer printer, builder codeBuilder, outputFile string) *StepCodeGenerator

func (*StepCodeGenerator) Name

func (s *StepCodeGenerator) Name() string

func (*StepCodeGenerator) Run

type StepCompile

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

func NewStepCompile

func NewStepCompile(c compiler) *StepCompile

func (*StepCompile) Name

func (s *StepCompile) Name() string

func (*StepCompile) Run

func (s *StepCompile) Run(i *input.Input, o *output.Output) error

type StepDefaultInput

type StepDefaultInput struct {
}

func (StepDefaultInput) Name

func (StepDefaultInput) Name() string

func (StepDefaultInput) Run

type StepOutputValidationRule

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

func NewStepOutputValidationRule

func NewStepOutputValidationRule(v func(output.Output) error, ruleName string) *StepOutputValidationRule

func (*StepOutputValidationRule) Name

func (s *StepOutputValidationRule) Name() string

func (*StepOutputValidationRule) Run

type StepReadConfig

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

func NewStepReadConfig

func NewStepReadConfig(printer printer, patterns []string) *StepReadConfig

func (*StepReadConfig) Name

func (s *StepReadConfig) Name() string

func (*StepReadConfig) Run

func (s *StepReadConfig) Run(i *input.Input, _ *output.Output) (err error)

type StepVerboseSwitchable

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

func NewStepVerboseSwitchable

func NewStepVerboseSwitchable(parent Step, printer printer, i indenter) *StepVerboseSwitchable

func (*StepVerboseSwitchable) Active

func (s *StepVerboseSwitchable) Active(active bool)

func (*StepVerboseSwitchable) Run

Jump to

Keyboard shortcuts

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