Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contextual ¶
Contextual returns a context.Context object.
type Environment ¶
type Environment interface { Contextual Outputs }
Environment represents a execution environment.
func WithContext ¶
func WithContext(ctx context.Context, env Environment) Environment
WithContext returns a new Environment with the given context.
func WithOutputs ¶
func WithOutputs(out, err io.Writer, env Environment) Environment
WithOutputs returns a new Environment with the given outputs.
Click to show internal directories.
Click to hide internal directories.