Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/richbl/bash-lib
- Owner: richbl
- License: gpl-3.0
- Created: 2017-01-12T04:58:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-23T19:16:39.000Z (over 2 years ago)
- Last Synced: 2023-08-24T15:27:29.528Z (over 1 year ago)
- Topics: bash, bash-script, bash-template, lib, library, shell, shell-script, template
- Language: Shell
- Size: 26.4 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 completenessFor 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.