Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
add ability to update gist CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Hartmann committed Apr 10, 2017
1 parent cf4471b commit ec69fa6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ help() {
printf " help: gist [command]\n"
printf "\n"
printf " COMMANDS:\n"
printf " ${BLUE}update${NORMAL}${SPACE:6}Update gist CLI.\n"
printf " ${BLUE}token${NORMAL}${SPACE:5}Set Github API token.\n"
printf " ${BLUE}search${NORMAL}${SPACE:6}Search your Github gists.${NORMAL}\n"
printf " ${BLUE}list${NORMAL}${SPACE:4}List your gists.${NORMAL}\n"
Expand Down
6 changes: 6 additions & 0 deletions gist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,10 @@ elif [ "$1" == "search" ]; then

exit


# # # # # # # # # # # # # # # # # # # #
# project self-update
elif [ "$1" == "update" ]; then
. $GIST_DIR/update.sh
exit
fi

0 comments on commit ec69fa6

Please sign in to comment.