Bash Oo Framework

screenshot of Bash Oo Framework

Bash Infinity is a modern standard library / framework / boilerplate for Bash

Overview

Bash Infinity is a standard library and framework for writing tools using bash. It aims to improve the readability of bash scripts and minimize code repetition by implementing concepts from other programming languages such as C#, Java, and JavaScript. The framework is modular and lightweight, allowing users to import individual features as needed. However, it is worth noting that the framework currently lacks comprehensive test coverage, so it may be more suitable for smaller projects or for copying and pasting specific features rather than using the entire framework.

Features

  • Error handling with exceptions and visual stack traces
  • Named parameters in functions
  • Passing arrays and maps as parameters
  • Try-catch implementation
  • Throwing custom exceptions
  • Importing scripts with the "import" keyword
  • Colors and powerline characters for increased readability
  • Well-formatted and colorful logging
  • Unit test library
  • Standard library for the type system
  • Operational chains for functional programming
  • Type system for object-oriented scripting