-
-
Save bhyde/9334552 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
[[ $# -gt 0 ]] || error 'Missing Argument(s)' | |
case $1 in | |
-h) check_args -h ; do_help ;; | |
--help) check_args --help ; do_help ;; | |
help) check_args help ; do_help ;; | |
add-key) check_args add-key url ; do_add_key $2 ;; | |
list-keys) check_args list-keys ; do_list_keys ;; | |
sign) check_args sign key_id file file ; do_sign $2 $3 $4 ;; | |
get) check_args get url ; do_get $2 ;; | |
*) check_args url ; do_get $1 ;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment