Skip to content

Template for writing better Bash scripts

License

Notifications You must be signed in to change notification settings

octivi/bash-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Octivi Bash Boilerplate (OBB)

license

If you are writing a script that is more than 100 lines long, or that uses non-straightforward control flow logic, you should rewrite it in a more structured language now. -- Google Shell Style Guide

Features

  • Supports Unofficial Bash "Strict Mode
  • Supports DEBUG environment variable
  • Supports NO_COLOR environment variable for disabling colors
  • Supports FORCE_COLOR environment variable
  • Supports ANSI colors
  • Logging helpers
  • Built-in documentation (generate -h output based on comments)
  • Supports POSIX getopts

Other resources

Style Guides

Boilerplates

Tools

License

All content is licensed under the terms of The MIT License.