State Management

The Decision

Best will use in-memory shell variables for state management.

The Context

Best will maintain state between function calls to allow for a simple API which follows "normal" bash syntax. This means we need some state management mechanism.

it "should _____"; expect _____; to_be _____

it "should not_____"; expect _____; not; to_be _____

it "should_____"; {
    do_something
    do_something_else
    expect _____
    to_be _____
}

Trade-offs

Alternatives Considered

The Consequences

Using in-memory shell variables for state management should come with these benefits:

Reevaluate the decision if these benefits are not realized or other downsides are discovered.