Skip to content

Instantly share code, notes, and snippets.

@bhyde
Created March 3, 2014 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhyde/9334552 to your computer and use it in GitHub Desktop.
Save bhyde/9334552 to your computer and use it in GitHub Desktop.
[[ $# -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