Documentation
¶
Overview ¶
Package bash implements the ```bash rehearse step block: the block body runs via `bash -euo pipefail` in the scenario's working directory; a non-zero exit fails the step (REQ: bash-block). The step captures context bag variables by appending `name=value` lines to the file at `$REHEARSE_CAPTURES` (REQ: context-bag).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct{}
Executor runs bash step blocks.
func (*Executor) Run ¶
func (*Executor) Run(ctx blocks.StepCtx) blocks.StepResult
Run executes the block body via `bash -euo pipefail -c`, capturing combined stdout/stderr (truncated per blocks.Truncate). The step gets a fresh empty file at $REHEARSE_CAPTURES; the `name=value` lines it appends there become the step's captures (REQ: context-bag).
Click to show internal directories.
Click to hide internal directories.