package
1.4.1
Repository: https://github.com/m-lab/go.git
Documentation: pkg.go.dev

# Functions

Chdir creates Job that changes the State Dir to the given directory at runtime.
Exec creates a Job to execute the given command with the given arguments.
Func creates a new FuncJob that runs the given function.
IfFileMissing creates a Job that runs the given job if the named file does not exist.
IfVarEmpty creates a Job that runs the given job if the named variable is empty.
New creates a State instance based on the current process state, using os.Stdin, os.Stdout, and os.Stderr, as well as the current working directory and environment.
NewReaderContext creates a context-aware io.Reader.
Pipe creates a Job that executes the given Jobs as a "shell pipeline", passing the output of the first to the input of the next, and so on.
Println writes the given message to the State Stdout and expands variable references from the running State environment.
Read creates a Job that reads from the given reader and writes it to Job's stdout.
ReadFile creates a Job that reads from the named file and writes it to the Job's stdout.
Script creates a Job that executes the given Job parameters in sequence.
SetEnv creates a Job to assign the given name=value in the running State Env.
SetEnvFromJob creates a new Job that sets the given name in Env to the result written to stdout by running the given Job.
System is an Exec job that interprets the given command using "/bin/sh".
Write creates a Job that reads from the Job input and writes to the given writer.
WriteFile creates a Job that reads from the Job input and writes to the named file.

# Variables

ErrScriptError is a base Script error.

# Structs

Description is used to produce a representation of a Job.
ExecJob implements the Job interface for basic process execution.
FuncJob is a generic Job type that allows creating new operations without creating a totally new type.
PipeJob implements the Job interface for running multiple Jobs in a pipeline.
ScriptJob implements the Job interface for running an ordered sequence of Jobs.
State is a Job configuration.

# Interfaces

Job is the interface for an operation.