Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# Setup default values for variables
VERSION="3.4.0"
CLUSTER=false
SERVICE=false
TASK_DEFINITION=false
MAX_DEFINITIONS=0
AWS_ASSUME_ROLE=false
IMAGE=false
@Gufran
Gufran / script.sh
Created January 29, 2020 11:02
Add nice looking help text to bash script
#!/bin/bash
function help { # Print help text
echo "Available commands:"
grep '^function' "${BASH_SOURCE[0]}" | sed -e 's/function / /' -e 's/{ //' | column -t -s\#
}