{"action":"created","comment":{"url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/comments/148694009","pull_request_review_id":73979070,"id":148694009,"diff_hunk":"@@ -125,10 +125,11 @@ func main() {\n \n \tapp.Commands = []cli.Command{\n \t\t{\n-\t\t\tName:    \"run\",\n-\t\t\tAliases: []string{\"r\"},\n-\t\t\tUsage:   \"Run your tests on Rainforest\",\n-\t\t\tAction:  startRun,\n+\t\t\tName:         \"run\",\n+\t\t\tAliases:      []string{\"r\"},\n+\t\t\tUsage:        \"Run your tests on Rainforest\",\n+\t\t\tOnUsageError: onCommandUsageErrorHandler(\"run\"),\n+\t\t\tAction:       startRun,\n \t\t\tDescription: \"Runs your tests on Rainforest platform. \" +\n \t\t\t\t\"You need to specify list of test IDs to run or use keyword 'all'. \" +","path":"rainforest-cli.go","position":14,"original_position":14,"commit_id":"e25ec0b5b47ae3cbcee026ef7cccd92671da3a1c","original_commit_id":"e25ec0b5b47ae3cbcee026ef7cccd92671da3a1c","user":{"login":"epaulet","id":9178278,"avatar_url":"https://avatars0.githubusercontent.com/u/9178278?v=4","gravatar_id":"","url":"https://api.github.com/users/epaulet","html_url":"https://github.com/epaulet","followers_url":"https://api.github.com/users/epaulet/followers","following_url":"https://api.github.com/users/epaulet/following{/other_user}","gists_url":"https://api.github.com/users/epaulet/gists{/gist_id}","starred_url":"https://api.github.com/users/epaulet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epaulet/subscriptions","organizations_url":"https://api.github.com/users/epaulet/orgs","repos_url":"https://api.github.com/users/epaulet/repos","events_url":"https://api.github.com/users/epaulet/events{/privacy}","received_events_url":"https://api.github.com/users/epaulet/received_events","type":"User","site_admin":false},"body":"I agree that it looks weird/inconsistent but it's what gofmt gives me :man_shrugging: ","created_at":"2017-11-03T00:41:45Z","updated_at":"2017-11-03T00:41:45Z","html_url":"https://github.com/rainforestapp/rainforest-cli/pull/316#discussion_r148694009","pull_request_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/316","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/comments/148694009"},"html":{"href":"https://github.com/rainforestapp/rainforest-cli/pull/316#discussion_r148694009"},"pull_request":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/316"}},"in_reply_to_id":148667201},"pull_request":{"url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/316","id":150186819,"html_url":"https://github.com/rainforestapp/rainforest-cli/pull/316","diff_url":"https://github.com/rainforestapp/rainforest-cli/pull/316.diff","patch_url":"https://github.com/rainforestapp/rainforest-cli/pull/316.patch","issue_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/316","number":316,"state":"open","locked":false,"title":"Update CLI package and handle usage errors","user":{"login":"epaulet","id":9178278,"avatar_url":"https://avatars0.githubusercontent.com/u/9178278?v=4","gravatar_id":"","url":"https://api.github.com/users/epaulet","html_url":"https://github.com/epaulet","followers_url":"https://api.github.com/users/epaulet/followers","following_url":"https://api.github.com/users/epaulet/following{/other_user}","gists_url":"https://api.github.com/users/epaulet/gists{/gist_id}","starred_url":"https://api.github.com/users/epaulet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epaulet/subscriptions","organizations_url":"https://api.github.com/users/epaulet/orgs","repos_url":"https://api.github.com/users/epaulet/repos","events_url":"https://api.github.com/users/epaulet/events{/privacy}","received_events_url":"https://api.github.com/users/epaulet/received_events","type":"User","site_admin":false},"body":"Also removed old vendor directory stuff. This directory is already listed in .gitignore ever since we started using glide.\r\n\r\nApparently adding the usage error handler at the top level (ie `app.OnUsageError`) does not affect usage errors for specific commands.\r\n\r\nfixes #312 ","created_at":"2017-11-02T01:50:59Z","updated_at":"2017-11-03T00:41:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b444c15a16c9babdedb850d16e3b5b9d404ab2b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"shosti","id":734316,"avatar_url":"https://avatars1.githubusercontent.com/u/734316?v=4","gravatar_id":"","url":"https://api.github.com/users/shosti","html_url":"https://github.com/shosti","followers_url":"https://api.github.com/users/shosti/followers","following_url":"https://api.github.com/users/shosti/following{/other_user}","gists_url":"https://api.github.com/users/shosti/gists{/gist_id}","starred_url":"https://api.github.com/users/shosti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shosti/subscriptions","organizations_url":"https://api.github.com/users/shosti/orgs","repos_url":"https://api.github.com/users/shosti/repos","events_url":"https://api.github.com/users/shosti/events{/privacy}","received_events_url":"https://api.github.com/users/shosti/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/316/commits","review_comments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/316/comments","review_comment_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/316/comments","statuses_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/statuses/e25ec0b5b47ae3cbcee026ef7cccd92671da3a1c","head":{"label":"rainforestapp:RF-3940","ref":"RF-3940","sha":"e25ec0b5b47ae3cbcee026ef7cccd92671da3a1c","user":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars2.githubusercontent.com/u/1892571?v=4","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"repo":{"id":11987995,"name":"rainforest-cli","full_name":"rainforestapp/rainforest-cli","owner":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars2.githubusercontent.com/u/1892571?v=4","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rainforestapp/rainforest-cli","description":"Command line interface to Rainforest","fork":false,"url":"https://api.github.com/repos/rainforestapp/rainforest-cli","forks_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/forks","keys_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/teams","hooks_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/hooks","issue_events_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/events{/number}","events_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/events","assignees_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/assignees{/user}","branches_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/branches{/branch}","tags_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/tags","blobs_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/languages","stargazers_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/stargazers","contributors_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/contributors","subscribers_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/subscribers","subscription_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/subscription","commits_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/contents/{+path}","compare_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/merges","archive_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/downloads","issues_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues{/number}","pulls_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/labels{/name}","releases_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/releases{/id}","deployments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/deployments","created_at":"2013-08-08T22:23:18Z","updated_at":"2017-09-11T00:59:08Z","pushed_at":"2017-11-02T20:53:09Z","git_url":"git://github.com/rainforestapp/rainforest-cli.git","ssh_url":"git@github.com:rainforestapp/rainforest-cli.git","clone_url":"https://github.com/rainforestapp/rainforest-cli.git","svn_url":"https://github.com/rainforestapp/rainforest-cli","homepage":"https://www.rainforestqa.com/","size":1088,"stargazers_count":23,"watchers_count":23,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":9,"forks":14,"open_issues":9,"watchers":23,"default_branch":"master"}},"base":{"label":"rainforestapp:master","ref":"master","sha":"af9b23f7a80e7de3c76ae51554cffeee41f3f7fb","user":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars2.githubusercontent.com/u/1892571?v=4","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"repo":{"id":11987995,"name":"rainforest-cli","full_name":"rainforestapp/rainforest-cli","owner":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars2.githubusercontent.com/u/1892571?v=4","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rainforestapp/rainforest-cli","description":"Command line interface to Rainforest","fork":false,"url":"https://api.github.com/repos/rainforestapp/rainforest-cli","forks_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/forks","keys_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/teams","hooks_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/hooks","issue_events_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/events{/number}","events_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/events","assignees_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/assignees{/user}","branches_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/branches{/branch}","tags_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/tags","blobs_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/languages","stargazers_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/stargazers","contributors_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/contributors","subscribers_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/subscribers","subscription_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/subscription","commits_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/contents/{+path}","compare_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/merges","archive_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/downloads","issues_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues{/number}","pulls_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/labels{/name}","releases_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/releases{/id}","deployments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/deployments","created_at":"2013-08-08T22:23:18Z","updated_at":"2017-09-11T00:59:08Z","pushed_at":"2017-11-02T20:53:09Z","git_url":"git://github.com/rainforestapp/rainforest-cli.git","ssh_url":"git@github.com:rainforestapp/rainforest-cli.git","clone_url":"https://github.com/rainforestapp/rainforest-cli.git","svn_url":"https://github.com/rainforestapp/rainforest-cli","homepage":"https://www.rainforestqa.com/","size":1088,"stargazers_count":23,"watchers_count":23,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":9,"forks":14,"open_issues":9,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/316"},"html":{"href":"https://github.com/rainforestapp/rainforest-cli/pull/316"},"issue":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/316"},"comments":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/316/comments"},"review_comments":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/316/comments"},"review_comment":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/316/commits"},"statuses":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/statuses/e25ec0b5b47ae3cbcee026ef7cccd92671da3a1c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"epaulet"}}