Last active
July 16, 2020 02:33
-
-
Save kardolus/407a3c46e0f69bcaa54e8ec60aa7a546 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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