#!/usr/bin/env bash
##? Usage: deploy.sh [options] <environment>
##?
##? Deploy the app to a target environment.
##?
##? Options:
##? -d, --dry-run show what would happen, don't actually deploy
##? -v, --verbose extra logging
##? -h, --help show this help
show_help() {
grep '^##?' "$0" | sed 's/^##? \?//'
}
case "${1:-}" in
-h|--help) show_help; exit 0 ;;
esac
# rest of script…
Create a free account and build your private vault. Share publicly whenever you want.