➕ Improve maintainability, readability, and efficiency of your scripts by standardize your scripting environment.
sudo apt update
sudo apt install shellcheck bats shell-formatsudo dnf install ShellCheck bats shfmtbrew install shellcheck bats shfmt- Clone the Repo: git clone script-templates
- Run Installer:
cd script-templates && sudo ./install.sh - Create a New Script:
new-script bash my-awesome-tool: This creates./my-awesome-tool.sh, makes it executable, and you're ready to add your logic.new-script python my-data-processor: This creates./my-data-processor.pyfor your Python project.
pip install pre-commitpre-commit installRun It: Now you can run this script from the root of your repository without any installation. It will behave exactly like the original shdoc. Bash
Generate documentation for a single file
./scriptize/utils/shdoc < ./bash/utilities/alerts.bash > docs/alerts_api.mdGenerate a single documentation file for all utilities
./scriptize/utils/shdoc < ./bash/utilities/*.bash > docs/BASH_API_REFERENCE.md