Skip to content

base-bash-libs v0.2.0

Choose a tag to compare

@codeforester codeforester released this 18 Jun 21:49
5191de7

Added

  • Added std_run as the preferred command-runner API while retaining run as a compatibility wrapper.
  • Added readonly BASE_BASH_LIBS_VERSION, sourced from the package VERSION file when lib_std.sh loads.
  • Added optional --fetch support to check_script_up_to_date.
  • Added Linux and supported-Bash GitHub Actions validation coverage.
  • Added PTY-backed coverage for wait_for_enter.
  • Added non-Homebrew installation documentation.

Changed

  • Preserved target file modes when update_file_section appends or replaces managed sections.
  • Hardened update_file_section marker ordering and edge-case behavior.
  • Validated variable-name arguments consistently across stdlib and git helpers.
  • Respected NO_COLOR and composed structured log records before one final stderr write.
  • Made safe_mkdir, git_get_current_branch, and git pull retry behavior more explicit.

Fixed

  • Failed cleanly when lib_std.sh is sourced by unsupported Bash versions.
  • Returned nonzero from set_log_level for invalid input without changing existing logger levels.
  • Added explicit dependency guards for companion libraries sourced without the stdlib.