Reusable, tested, and standards-compliant Bash libraries for Linux/macOS automation.
bashlib/
├── lib/ # Bash libraries (e.g. lib_std.sh)
├── tests/ # BATS test suites for all libraries
├── examples/ # Sample scripts using the libraries
├── STANDARDS.md # Coding and design guidelines
└── README.md # This file
To use or contribute to this project, you'll need:
-
Bash 4.0+
macOS users may need to install a newer version via Homebrew:
brew install bash -
bats-core — for test execution
https://github.com/bats-core/bats-core -
git — for managing the repository and test dependencies
-
Clone the repository:
git clone https://github.com/<your-username>/bashlib.git cd bashlib