/bashlib

Reusable, testable Bash libraries for automation and scripting. Especially useful for SRE and DevOps engineers who write a lot of Bash code.

Primary LanguageShellMIT LicenseMIT

bashlib

Reusable, tested, and standards-compliant Bash libraries for Linux/macOS automation.

📁 Directory Structure

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


🔧 Requirements

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


🚀 Quick Start

  1. Clone the repository:

    git clone https://github.com/<your-username>/bashlib.git
    cd bashlib
    

📚 References