bashUtils is a bash library for handling all sorts of contexts, e.g.: arrays, versioning, etc.
The purpose of this project is to have a single library/repo that contains all the bash functions that are reusable in multiple bash-based projects.
Prerequisites
- You have a
bashshell.
There are three quick start options available:
- Using basHog
- Download the latest release
- Clone the repo:
git clone https://github.com/athena-oss/bashutils.git
Add the file feed.hog to the root of your project with the following content :
- When you want a specific version :
[bashutils]
url=athena-oss/bashutils
version=0.3.0
lib_dir=lib- With the latest master version :
[bashutils]
url=https://github.com/athena-oss/bashutils.git
lib_dir=libRun basHog in the root of the project
$ bashogInclude/Source the autoloader in your project with the following line :
source "vendor/autoloader"Use the functions :
if bashutils.type.is_integer "a" ; then
...
fiCheckout our guidelines on how to contribute in CONTRIBUTING.md.
Releases are managed using github's release feature. We use Semantic Versioning for all the releases. Every change made to the code base will be referred to in the release notes (except for cleanups and refactorings).
Licensed under the Apache License Version 2.0 (APLv2).