Skip to content

Commit

Permalink
Merge pull request #14 from sargsyan/fix-a-bug-during-install-and-imp…
Browse files Browse the repository at this point in the history
…rove-the-config-usage-doc

Fix a bug during install and improve the config usage doc
  • Loading branch information
sargsyan authored Nov 1, 2019
2 parents 7b4336b + 86ac5ec commit 0420580
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
21 changes: 11 additions & 10 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,33 @@ readonly DIR_NAME=$(dirname $BASH_SOURCE)

function usage() {
cat <<- EOF
usage:
Usage:
$APP_NAME list
$APP_NAME add <github instance url> [<access token>]
$APP_NAME rm <config name>
$APP_NAME activate <config name>
$APP_NAME deactivate <config name>
$APP_NAME token update <config name> [<new token>]
$APP_NAME rm <github instance url>
$APP_NAME activate <github instance url>
$APP_NAME deactivate <github instance url>
$APP_NAME token update <github instance url> [<new token>]
Used to manage github instances. Normally, the most popular github instance is github.com.
Normally, the most popular github instance is https://github.com
The other instances are github enterprise instances.
Examples:
List all configurations:
$APP_NAME list
Add a new configuration:
$APP_NAME add github.mycompany.com
$APP_NAME add https://github.mycompany.com
Deactivate a configuration:
$APP_NAME deactivate github.mycompany.com
$APP_NAME deactivate https://github.mycompany.com
Remove a configuration:
$APP_NAME rm my_company
$APP_NAME rm https://github.mycompany.com
Reset token
$APP_NAME token update my_company new_token
$APP_NAME token update github.mycompany.com new_token
EOF
}

Expand Down
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function main() {
mkdir -p $(dirname $LOGFILE_PATH)
touch $LOGFILE_PATH
echo "$(get_plist_body)" > org.github-notif.get.plist
mkdir -p $LAUNCH_AGENTS_DIR
cp org.github-notif.get.plist $LAUNCH_AGENTS_DIR &&
rm org.github-notif.get.plist
launchctl load -w $LAUNCH_AGENTS_DIR/org.github-notif.get.plist
Expand Down

0 comments on commit 0420580

Please sign in to comment.