Helper functions to use in my custom shell scripts
Shell Functions
Why
While coding shell scripts, there are plenty of standard tasks that I need to do. This repository contains modules that can be imported by other scripts.
Quickstart
You can import a given module by adding following line to your script:
source <(curl -s "https://raw.githubusercontent.com/delucca/shell-functions/<desired-release-tag>/modules/<desired-module>.sh")
💡 You can get the release tag in ouor releases page
This will add all helpers functions from that module to your shell script
Usage
Each module has it's own usage and functions. Below, I've wrote an one-liner for each module, explaining their general purpose:
- Feedback: Functions that give feedback for our user in the CLI, such as logs, spinners, and others
- Validation: Functions that validate date, throwing errors when they are not valid
- Authorization: Functions that handle relevant authorization tasks
License
This repository is distributed under the Apache 2.0 License. See LICENSE
for more information.