runner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: AGPL-3.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 Executable

type Executable interface {
	Stdin(io.Reader)
	Stdout(io.Writer)
	Stderr(io.Writer)

	Run(args []string) error
	ReturnCode() (int, error)
}

type Func

type Func func(args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) (int, error)

type Function

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

func NewFunction

func NewFunction(f Func) *Function

func (*Function) ReturnCode

func (s *Function) ReturnCode() (int, error)

func (*Function) Run

func (s *Function) Run(args []string) error

func (*Function) Stderr

func (s *Function) Stderr(w io.Writer)

func (*Function) Stdin

func (s *Function) Stdin(r io.Reader)

func (*Function) Stdout

func (s *Function) Stdout(w io.Writer)

type Stdlib

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

func NewStdlib

func NewStdlib(path string) *Stdlib

func (*Stdlib) ReturnCode

func (s *Stdlib) ReturnCode() (int, error)

func (*Stdlib) Run

func (s *Stdlib) Run(args []string) error

func (*Stdlib) Stderr

func (s *Stdlib) Stderr(w io.Writer)

func (*Stdlib) Stdin

func (s *Stdlib) Stdin(r io.Reader)

func (*Stdlib) Stdout

func (s *Stdlib) Stdout(w io.Writer)

Jump to

Keyboard shortcuts

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