-
Notifications
You must be signed in to change notification settings - Fork 22
treehouses message gitter configure apitoken (fixes #2122)
#2123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -231,6 +231,38 @@ function message { | |
| log_comment_and_exit1 "Error: You do not have an authorized access token" "To get access token, run $BASENAME message gitter apitoken" | ||
| fi | ||
| ;; | ||
| "") | ||
| if check_apitoken gitter; then | ||
|
|
||
|
|
||
| echo "You must provide a subcommand for $BASENAME message gitter listed below:" | ||
| echo " $BASENAME message gitter apitoken" | ||
| echo " Check for API token for gitter" | ||
| echo | ||
| echo " $BASENAME message gitter authorize \"1234567890\"" | ||
| echo " Sets and saves API token" | ||
| echo | ||
| echo " $BASENAME message gitter channels" | ||
| echo " check for channels" | ||
| echo | ||
| echo " $BASENAME message gitter send treehouses/Lobby \"Hi, you are very awesome\"" | ||
| echo " Sends a message to a gitter channel" | ||
| echo | ||
| echo " $BASENAME message gitter show treehouses/Lobby" | ||
| echo " Marks unread messages from a gitter channel to read" | ||
| echo | ||
| echo " $BASENAME message gitter read treehouses/Lobby" | ||
| echo " Receives and displays unread messages from a gitter channel" | ||
| echo | ||
| echo " $BASENAME message gitter mark treehouses/Lobby" | ||
| echo " Marks unread messages from a gitter channel to read" | ||
| echo | ||
| else | ||
| echo "You do not have a gitter apitoken setup." | ||
| echo "For instructions to configure your gitter apitoken" | ||
| echo "Please run: $BASENAME message gitter apitoken" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This error message could also run
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will test that out, thanks. |
||
| fi | ||
| ;; | ||
| *) | ||
| log_help_and_exit1 "Error: This command does not exist" message | ||
| ;; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of this:
speak about success
and show api token