bash

package
v0.32.5 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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 New

func New() *Executor

New returns the bash block executor.

func (*Executor) Kind

func (*Executor) Kind() string

Kind returns "bash".

func (*Executor) Run

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).

Jump to

Keyboard shortcuts

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