Skip to content

Simplify early public Bash helper APIs #106

Description

@codeforester

Context

Claude's latest review called out several compatibility or duplicate public
surfaces that are more confusing than useful while base-bash-libs is still new.
Base is currently the only consumer, so we do not need to preserve backward
compatibility for helpers that have not been adopted externally.

Scope

  • Remove the duplicate str_in_array helper and keep list_contains as the
    canonical array-membership predicate.
  • Remove the bare run stdlib alias so BATS users do not inherit a surprising
    symbol from the library.
  • Remove std_run_with_timeout and direct callers to std_run --timeout.
  • Tighten docs/tests around canonical list and command-runner APIs.
  • Add or adjust tests so list_remove explicitly documents and verifies
    all-match removal.

Validation

  • Focused BATS suites for touched libraries.
  • Full ./tests/validate.sh.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or product improvement

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions