Skip to content

Instantly share code, notes, and snippets.

@kardolus
Last active July 16, 2020 02:33
Show Gist options
  • Save kardolus/407a3c46e0f69bcaa54e8ec60aa7a546 to your computer and use it in GitHub Desktop.
Save kardolus/407a3c46e0f69bcaa54e8ec60aa7a546 to your computer and use it in GitHub Desktop.
### Usage: kong.sh [--no-db]
###
### - Run kong with an in memory database
### kong.sh --no-db
###
### - Run kong with postgre
### kong.sh
print_usage() {
awk -F'### ' '/^###/ { print $2 }' "$0"
exit 101
}
#!/usr/bin/env bash
set -o pipefail
print_usage() {
cat <<-EOF
Usage: kong.sh [--no-db]
- Run kong with an in memory database
kong.sh --no-db
- Run kong with postgre
kong.sh
EOF
exit 101
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment