Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/richbl/bash-lib

library of common bash routines used in a-bash-template (BaT) project
https://github.com/richbl/bash-lib

bash bash-script bash-template lib library shell shell-script template

Last synced: about 1 month ago
JSON representation

library of common bash routines used in a-bash-template (BaT) project

Awesome Lists containing this project

README

        

# Bash-Lib

## [Developed for a Bash Template (BaT)](https://github.com/richbl/a-bash-template)[](https://github.com/richbl/a-bash-template)

**Bash-Lib** is a library of common [Bash](https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29) shell routines used in projects based on the [A-Bash-Template (BaT)](https://github.com/richbl/a-bash-template) project. This library is broken into two files:

- `general`
- Routines created to:
- Check program dependencies
- Check file dependencies
- From a JSON configuration file, dynamically format and display a program banner, e.g.
>>
|
| A bash template (BaT) to ease argument parsing and management
|
| Usage:
| bash_template.sh -a alpha -b bravo [-c charlie] -d delta
|
| -a, --alpha alpha (something descriptive)
| -b, --bravo bravo (something descriptive)
| -c, --charlie charlie (this is optional)
| -d, --delta delta (something descriptive)
|

- `args`
- Routines created to:
- Parse a JSON file for program configuration details
- Scan command-line arguments for accuracy and completeness

For details on how the various routines of this library project are used, see the [A-Bash-Template (BaT)](https://github.com/richbl/a-bash-template#a-bash-template) project.

> Note that this project is managed as a Git [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) project specifically to keep projects that use this library up-to-date without manual intervention.