{"action":"created","comment":{"url":"https://api.github.com/repos/twitter/heron/pulls/comments/74808120","id":74808120,"diff_hunk":"@@ -111,30 +113,21 @@ def run(command, parser, command_args, unknown_args):\n   :param unknown_args:\n   :return:\n   '''\n-  status = 1\n-  if command == 'activate':\n-    status = activate.run(command, parser, command_args, unknown_args)\n-\n-  elif command == 'deactivate':\n-    status = deactivate.run(command, parser, command_args, unknown_args)\n-\n-  elif command == 'kill':\n-    status = kill.run(command, parser, command_args, unknown_args)\n-\n-  elif command == 'restart':\n-    status = restart.run(command, parser, command_args, unknown_args)\n-\n-  elif command == 'submit':\n-    status = submit.run(command, parser, command_args, unknown_args)\n-\n-  elif command == 'help':\n-    status = cli_help.run(command, parser, command_args, unknown_args)\n-\n-  elif command == 'version':\n-    status = version.run(command, parser, command_args, unknown_args)\n-\n-  return status\n-\n+  runners = {\n+      'activate':activate,\n+      'deactivate':deactivate,\n+      'kill':kill,\n+      'restart':restart,\n+      'submit':submit,\n+      'update':update,\n+      'help':cli_help,\n+      'version':version,\n+  }\n+\n+  if command in runners.keys():\n+    return runners[command].run(command, parser, command_args, unknown_args)\n+  else:","path":"heron/cli/src/python/main.py","position":57,"original_position":57,"commit_id":"6c795e97c5d6ca7c492dc0b92e23b91b09ac95df","original_commit_id":"1b509f9c322db6ad2311c9887974c5b90790ce59","user":{"login":"objmagic","id":3656079,"avatar_url":"https://avatars.githubusercontent.com/u/3656079?v=3","gravatar_id":"","url":"https://api.github.com/users/objmagic","html_url":"https://github.com/objmagic","followers_url":"https://api.github.com/users/objmagic/followers","following_url":"https://api.github.com/users/objmagic/following{/other_user}","gists_url":"https://api.github.com/users/objmagic/gists{/gist_id}","starred_url":"https://api.github.com/users/objmagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/objmagic/subscriptions","organizations_url":"https://api.github.com/users/objmagic/orgs","repos_url":"https://api.github.com/users/objmagic/repos","events_url":"https://api.github.com/users/objmagic/events{/privacy}","received_events_url":"https://api.github.com/users/objmagic/received_events","type":"User","site_admin":false},"body":"agree...","created_at":"2016-08-15T18:24:02Z","updated_at":"2016-08-15T18:24:02Z","html_url":"https://github.com/twitter/heron/pull/1218#discussion_r74808120","pull_request_url":"https://api.github.com/repos/twitter/heron/pulls/1218","_links":{"self":{"href":"https://api.github.com/repos/twitter/heron/pulls/comments/74808120"},"html":{"href":"https://github.com/twitter/heron/pull/1218#discussion_r74808120"},"pull_request":{"href":"https://api.github.com/repos/twitter/heron/pulls/1218"}}},"pull_request":{"url":"https://api.github.com/repos/twitter/heron/pulls/1218","id":80111613,"html_url":"https://github.com/twitter/heron/pull/1218","diff_url":"https://github.com/twitter/heron/pull/1218.diff","patch_url":"https://github.com/twitter/heron/pull/1218.patch","issue_url":"https://api.github.com/repos/twitter/heron/issues/1218","number":1218,"state":"open","locked":false,"title":"DO NOT MERGE - scaling prototype","user":{"login":"billonahill","id":23758,"avatar_url":"https://avatars.githubusercontent.com/u/23758?v=3","gravatar_id":"","url":"https://api.github.com/users/billonahill","html_url":"https://github.com/billonahill","followers_url":"https://api.github.com/users/billonahill/followers","following_url":"https://api.github.com/users/billonahill/following{/other_user}","gists_url":"https://api.github.com/users/billonahill/gists{/gist_id}","starred_url":"https://api.github.com/users/billonahill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billonahill/subscriptions","organizations_url":"https://api.github.com/users/billonahill/orgs","repos_url":"https://api.github.com/users/billonahill/repos","events_url":"https://api.github.com/users/billonahill/events{/privacy}","received_events_url":"https://api.github.com/users/billonahill/received_events","type":"User","site_admin":false},"body":"This PR is just to make it easier to view diffs and to have travis ci verify commits. This is a long-lived branch.\r\n\r\nNo need to review this branch. All reviews will happen on smaller PRs. You might want to unwatch this one to not get tons of commit emails that don't require action.","created_at":"2016-08-04T16:45:26Z","updated_at":"2016-08-15T18:24:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc54ee193af9516d68bfa285b4b9b9bd9c924bdf","assignee":{"login":"billonahill","id":23758,"avatar_url":"https://avatars.githubusercontent.com/u/23758?v=3","gravatar_id":"","url":"https://api.github.com/users/billonahill","html_url":"https://github.com/billonahill","followers_url":"https://api.github.com/users/billonahill/followers","following_url":"https://api.github.com/users/billonahill/following{/other_user}","gists_url":"https://api.github.com/users/billonahill/gists{/gist_id}","starred_url":"https://api.github.com/users/billonahill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billonahill/subscriptions","organizations_url":"https://api.github.com/users/billonahill/orgs","repos_url":"https://api.github.com/users/billonahill/repos","events_url":"https://api.github.com/users/billonahill/events{/privacy}","received_events_url":"https://api.github.com/users/billonahill/received_events","type":"User","site_admin":false},"assignees":[{"login":"billonahill","id":23758,"avatar_url":"https://avatars.githubusercontent.com/u/23758?v=3","gravatar_id":"","url":"https://api.github.com/users/billonahill","html_url":"https://github.com/billonahill","followers_url":"https://api.github.com/users/billonahill/followers","following_url":"https://api.github.com/users/billonahill/following{/other_user}","gists_url":"https://api.github.com/users/billonahill/gists{/gist_id}","starred_url":"https://api.github.com/users/billonahill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billonahill/subscriptions","organizations_url":"https://api.github.com/users/billonahill/orgs","repos_url":"https://api.github.com/users/billonahill/repos","events_url":"https://api.github.com/users/billonahill/events{/privacy}","received_events_url":"https://api.github.com/users/billonahill/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/twitter/heron/pulls/1218/commits","review_comments_url":"https://api.github.com/repos/twitter/heron/pulls/1218/comments","review_comment_url":"https://api.github.com/repos/twitter/heron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twitter/heron/issues/1218/comments","statuses_url":"https://api.github.com/repos/twitter/heron/statuses/6c795e97c5d6ca7c492dc0b92e23b91b09ac95df","head":{"label":"billonahill:billg/scaling_proto","ref":"billg/scaling_proto","sha":"6c795e97c5d6ca7c492dc0b92e23b91b09ac95df","user":{"login":"billonahill","id":23758,"avatar_url":"https://avatars.githubusercontent.com/u/23758?v=3","gravatar_id":"","url":"https://api.github.com/users/billonahill","html_url":"https://github.com/billonahill","followers_url":"https://api.github.com/users/billonahill/followers","following_url":"https://api.github.com/users/billonahill/following{/other_user}","gists_url":"https://api.github.com/users/billonahill/gists{/gist_id}","starred_url":"https://api.github.com/users/billonahill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billonahill/subscriptions","organizations_url":"https://api.github.com/users/billonahill/orgs","repos_url":"https://api.github.com/users/billonahill/repos","events_url":"https://api.github.com/users/billonahill/events{/privacy}","received_events_url":"https://api.github.com/users/billonahill/received_events","type":"User","site_admin":false},"repo":{"id":59679434,"name":"heron","full_name":"billonahill/heron","owner":{"login":"billonahill","id":23758,"avatar_url":"https://avatars.githubusercontent.com/u/23758?v=3","gravatar_id":"","url":"https://api.github.com/users/billonahill","html_url":"https://github.com/billonahill","followers_url":"https://api.github.com/users/billonahill/followers","following_url":"https://api.github.com/users/billonahill/following{/other_user}","gists_url":"https://api.github.com/users/billonahill/gists{/gist_id}","starred_url":"https://api.github.com/users/billonahill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billonahill/subscriptions","organizations_url":"https://api.github.com/users/billonahill/orgs","repos_url":"https://api.github.com/users/billonahill/repos","events_url":"https://api.github.com/users/billonahill/events{/privacy}","received_events_url":"https://api.github.com/users/billonahill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/billonahill/heron","description":"Heron is a realtime, distributed, fault-tolerant stream processing engine from Twitter","fork":true,"url":"https://api.github.com/repos/billonahill/heron","forks_url":"https://api.github.com/repos/billonahill/heron/forks","keys_url":"https://api.github.com/repos/billonahill/heron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/billonahill/heron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/billonahill/heron/teams","hooks_url":"https://api.github.com/repos/billonahill/heron/hooks","issue_events_url":"https://api.github.com/repos/billonahill/heron/issues/events{/number}","events_url":"https://api.github.com/repos/billonahill/heron/events","assignees_url":"https://api.github.com/repos/billonahill/heron/assignees{/user}","branches_url":"https://api.github.com/repos/billonahill/heron/branches{/branch}","tags_url":"https://api.github.com/repos/billonahill/heron/tags","blobs_url":"https://api.github.com/repos/billonahill/heron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/billonahill/heron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/billonahill/heron/git/refs{/sha}","trees_url":"https://api.github.com/repos/billonahill/heron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/billonahill/heron/statuses/{sha}","languages_url":"https://api.github.com/repos/billonahill/heron/languages","stargazers_url":"https://api.github.com/repos/billonahill/heron/stargazers","contributors_url":"https://api.github.com/repos/billonahill/heron/contributors","subscribers_url":"https://api.github.com/repos/billonahill/heron/subscribers","subscription_url":"https://api.github.com/repos/billonahill/heron/subscription","commits_url":"https://api.github.com/repos/billonahill/heron/commits{/sha}","git_commits_url":"https://api.github.com/repos/billonahill/heron/git/commits{/sha}","comments_url":"https://api.github.com/repos/billonahill/heron/comments{/number}","issue_comment_url":"https://api.github.com/repos/billonahill/heron/issues/comments{/number}","contents_url":"https://api.github.com/repos/billonahill/heron/contents/{+path}","compare_url":"https://api.github.com/repos/billonahill/heron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/billonahill/heron/merges","archive_url":"https://api.github.com/repos/billonahill/heron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/billonahill/heron/downloads","issues_url":"https://api.github.com/repos/billonahill/heron/issues{/number}","pulls_url":"https://api.github.com/repos/billonahill/heron/pulls{/number}","milestones_url":"https://api.github.com/repos/billonahill/heron/milestones{/number}","notifications_url":"https://api.github.com/repos/billonahill/heron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/billonahill/heron/labels{/name}","releases_url":"https://api.github.com/repos/billonahill/heron/releases{/id}","deployments_url":"https://api.github.com/repos/billonahill/heron/deployments","created_at":"2016-05-25T16:27:20Z","updated_at":"2016-05-25T16:31:33Z","pushed_at":"2016-08-15T18:16:08Z","git_url":"git://github.com/billonahill/heron.git","ssh_url":"git@github.com:billonahill/heron.git","clone_url":"https://github.com/billonahill/heron.git","svn_url":"https://github.com/billonahill/heron","homepage":"http://heronstreaming.io","size":112808,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"twitter:master","ref":"master","sha":"c2c3725f4093b95e4fe560be848f9891d8653c66","user":{"login":"twitter","id":50278,"avatar_url":"https://avatars.githubusercontent.com/u/50278?v=3","gravatar_id":"","url":"https://api.github.com/users/twitter","html_url":"https://github.com/twitter","followers_url":"https://api.github.com/users/twitter/followers","following_url":"https://api.github.com/users/twitter/following{/other_user}","gists_url":"https://api.github.com/users/twitter/gists{/gist_id}","starred_url":"https://api.github.com/users/twitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twitter/subscriptions","organizations_url":"https://api.github.com/users/twitter/orgs","repos_url":"https://api.github.com/users/twitter/repos","events_url":"https://api.github.com/users/twitter/events{/privacy}","received_events_url":"https://api.github.com/users/twitter/received_events","type":"Organization","site_admin":false},"repo":{"id":43158694,"name":"heron","full_name":"twitter/heron","owner":{"login":"twitter","id":50278,"avatar_url":"https://avatars.githubusercontent.com/u/50278?v=3","gravatar_id":"","url":"https://api.github.com/users/twitter","html_url":"https://github.com/twitter","followers_url":"https://api.github.com/users/twitter/followers","following_url":"https://api.github.com/users/twitter/following{/other_user}","gists_url":"https://api.github.com/users/twitter/gists{/gist_id}","starred_url":"https://api.github.com/users/twitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twitter/subscriptions","organizations_url":"https://api.github.com/users/twitter/orgs","repos_url":"https://api.github.com/users/twitter/repos","events_url":"https://api.github.com/users/twitter/events{/privacy}","received_events_url":"https://api.github.com/users/twitter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/twitter/heron","description":"Heron is a realtime, distributed, fault-tolerant stream processing engine from Twitter","fork":false,"url":"https://api.github.com/repos/twitter/heron","forks_url":"https://api.github.com/repos/twitter/heron/forks","keys_url":"https://api.github.com/repos/twitter/heron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twitter/heron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twitter/heron/teams","hooks_url":"https://api.github.com/repos/twitter/heron/hooks","issue_events_url":"https://api.github.com/repos/twitter/heron/issues/events{/number}","events_url":"https://api.github.com/repos/twitter/heron/events","assignees_url":"https://api.github.com/repos/twitter/heron/assignees{/user}","branches_url":"https://api.github.com/repos/twitter/heron/branches{/branch}","tags_url":"https://api.github.com/repos/twitter/heron/tags","blobs_url":"https://api.github.com/repos/twitter/heron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twitter/heron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twitter/heron/git/refs{/sha}","trees_url":"https://api.github.com/repos/twitter/heron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twitter/heron/statuses/{sha}","languages_url":"https://api.github.com/repos/twitter/heron/languages","stargazers_url":"https://api.github.com/repos/twitter/heron/stargazers","contributors_url":"https://api.github.com/repos/twitter/heron/contributors","subscribers_url":"https://api.github.com/repos/twitter/heron/subscribers","subscription_url":"https://api.github.com/repos/twitter/heron/subscription","commits_url":"https://api.github.com/repos/twitter/heron/commits{/sha}","git_commits_url":"https://api.github.com/repos/twitter/heron/git/commits{/sha}","comments_url":"https://api.github.com/repos/twitter/heron/comments{/number}","issue_comment_url":"https://api.github.com/repos/twitter/heron/issues/comments{/number}","contents_url":"https://api.github.com/repos/twitter/heron/contents/{+path}","compare_url":"https://api.github.com/repos/twitter/heron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twitter/heron/merges","archive_url":"https://api.github.com/repos/twitter/heron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twitter/heron/downloads","issues_url":"https://api.github.com/repos/twitter/heron/issues{/number}","pulls_url":"https://api.github.com/repos/twitter/heron/pulls{/number}","milestones_url":"https://api.github.com/repos/twitter/heron/milestones{/number}","notifications_url":"https://api.github.com/repos/twitter/heron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twitter/heron/labels{/name}","releases_url":"https://api.github.com/repos/twitter/heron/releases{/id}","deployments_url":"https://api.github.com/repos/twitter/heron/deployments","created_at":"2015-09-25T16:09:24Z","updated_at":"2016-08-15T16:13:57Z","pushed_at":"2016-08-15T18:17:33Z","git_url":"git://github.com/twitter/heron.git","ssh_url":"git@github.com:twitter/heron.git","clone_url":"https://github.com/twitter/heron.git","svn_url":"https://github.com/twitter/heron","homepage":"http://heronstreaming.io","size":143307,"stargazers_count":2253,"watchers_count":2253,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":354,"mirror_url":null,"open_issues_count":169,"forks":354,"open_issues":169,"watchers":2253,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twitter/heron/pulls/1218"},"html":{"href":"https://github.com/twitter/heron/pull/1218"},"issue":{"href":"https://api.github.com/repos/twitter/heron/issues/1218"},"comments":{"href":"https://api.github.com/repos/twitter/heron/issues/1218/comments"},"review_comments":{"href":"https://api.github.com/repos/twitter/heron/pulls/1218/comments"},"review_comment":{"href":"https://api.github.com/repos/twitter/heron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twitter/heron/pulls/1218/commits"},"statuses":{"href":"https://api.github.com/repos/twitter/heron/statuses/6c795e97c5d6ca7c492dc0b92e23b91b09ac95df"}}}}
{"actor":{"display_login":"objmagic"}}