Last active
August 29, 2015 14:01
-
-
Save daboross/5231c133d8628e13e479 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
main() { | |
local -r FUNCTION="$1" | |
case "$FUNCTION" in | |
function-1) | |
function_1 ;; | |
function-2) | |
function_2 ;; | |
function-2) | |
function_3 ;; | |
help) | |
echo "here is some help" ;; | |
?*) | |
echo "unknown argument '${1}'" ;; | |
*) | |
echo "plz specify command" ;; | |
esac | |
} | |
main "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment