{"action":"created","comment":{"url":"https://api.github.com/repos/concord/cmd/pulls/comments/37562511","id":37562511,"diff_hunk":"@@ -1,49 +1,184 @@\n #!/usr/bin/env python\n+import sys\n import thrift\n import json\n import logging\n-from optparse import OptionParser\n+import argparse\n from concord_cli.utils import *\n+from terminaltables import AsciiTable\n \n logging.basicConfig()\n logger = logging.getLogger('cmd.kill_task')\n logger.setLevel(logging.INFO)\n \n def generate_options():","path":"concord_cli/kill_task.py","position":15,"original_position":15,"commit_id":"224b9536750a3757119b049f1de0a69512d3b4bb","original_commit_id":"224b9536750a3757119b049f1de0a69512d3b4bb","user":{"login":"RBlafford","id":467807,"avatar_url":"https://avatars.githubusercontent.com/u/467807?v=3","gravatar_id":"","url":"https://api.github.com/users/RBlafford","html_url":"https://github.com/RBlafford","followers_url":"https://api.github.com/users/RBlafford/followers","following_url":"https://api.github.com/users/RBlafford/following{/other_user}","gists_url":"https://api.github.com/users/RBlafford/gists{/gist_id}","starred_url":"https://api.github.com/users/RBlafford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RBlafford/subscriptions","organizations_url":"https://api.github.com/users/RBlafford/orgs","repos_url":"https://api.github.com/users/RBlafford/repos","events_url":"https://api.github.com/users/RBlafford/events{/privacy}","received_events_url":"https://api.github.com/users/RBlafford/received_events","type":"User","site_admin":false},"body":"? How is this comment relevent to import AsciiTable?","created_at":"2015-08-20T18:15:29Z","updated_at":"2015-08-20T18:15:29Z","html_url":"https://github.com/concord/cmd/pull/7#discussion_r37562511","pull_request_url":"https://api.github.com/repos/concord/cmd/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/concord/cmd/pulls/comments/37562511"},"html":{"href":"https://github.com/concord/cmd/pull/7#discussion_r37562511"},"pull_request":{"href":"https://api.github.com/repos/concord/cmd/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/concord/cmd/pulls/7","id":42863905,"html_url":"https://github.com/concord/cmd/pull/7","diff_url":"https://github.com/concord/cmd/pull/7.diff","patch_url":"https://github.com/concord/cmd/pull/7.patch","issue_url":"https://api.github.com/repos/concord/cmd/issues/7","number":7,"state":"open","locked":false,"title":"Adding interactive mode to kill script","user":{"login":"RBlafford","id":467807,"avatar_url":"https://avatars.githubusercontent.com/u/467807?v=3","gravatar_id":"","url":"https://api.github.com/users/RBlafford","html_url":"https://github.com/RBlafford","followers_url":"https://api.github.com/users/RBlafford/followers","following_url":"https://api.github.com/users/RBlafford/following{/other_user}","gists_url":"https://api.github.com/users/RBlafford/gists{/gist_id}","starred_url":"https://api.github.com/users/RBlafford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RBlafford/subscriptions","organizations_url":"https://api.github.com/users/RBlafford/orgs","repos_url":"https://api.github.com/users/RBlafford/repos","events_url":"https://api.github.com/users/RBlafford/events{/privacy}","received_events_url":"https://api.github.com/users/RBlafford/received_events","type":"User","site_admin":false},"body":"- The default for zookeeper-path is /bolt\r\n- The default for zookeeper-hosts is localhost:2181\r\n- If task_id is missing and -a flag is not used, theninteractive mode\r\n  will begin\r\n- During interactive mode users have the option to select different\r\n  groups and ranges by entering a comma seperated list of numbers,\r\n  and/or ranges\r\n- Users may also pass in all(a) to select all and quit(q) to cancel","created_at":"2015-08-19T21:04:29Z","updated_at":"2015-08-20T18:15:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cda297ada9b558ac85ed1a8d024072b411d4c6f1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/concord/cmd/pulls/7/commits","review_comments_url":"https://api.github.com/repos/concord/cmd/pulls/7/comments","review_comment_url":"https://api.github.com/repos/concord/cmd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/concord/cmd/issues/7/comments","statuses_url":"https://api.github.com/repos/concord/cmd/statuses/224b9536750a3757119b049f1de0a69512d3b4bb","head":{"label":"concord:feature/kill_interactive","ref":"feature/kill_interactive","sha":"224b9536750a3757119b049f1de0a69512d3b4bb","user":{"login":"concord","id":11670344,"avatar_url":"https://avatars.githubusercontent.com/u/11670344?v=3","gravatar_id":"","url":"https://api.github.com/users/concord","html_url":"https://github.com/concord","followers_url":"https://api.github.com/users/concord/followers","following_url":"https://api.github.com/users/concord/following{/other_user}","gists_url":"https://api.github.com/users/concord/gists{/gist_id}","starred_url":"https://api.github.com/users/concord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord/subscriptions","organizations_url":"https://api.github.com/users/concord/orgs","repos_url":"https://api.github.com/users/concord/repos","events_url":"https://api.github.com/users/concord/events{/privacy}","received_events_url":"https://api.github.com/users/concord/received_events","type":"Organization","site_admin":false},"repo":{"id":34532353,"name":"cmd","full_name":"concord/cmd","owner":{"login":"concord","id":11670344,"avatar_url":"https://avatars.githubusercontent.com/u/11670344?v=3","gravatar_id":"","url":"https://api.github.com/users/concord","html_url":"https://github.com/concord","followers_url":"https://api.github.com/users/concord/followers","following_url":"https://api.github.com/users/concord/following{/other_user}","gists_url":"https://api.github.com/users/concord/gists{/gist_id}","starred_url":"https://api.github.com/users/concord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord/subscriptions","organizations_url":"https://api.github.com/users/concord/orgs","repos_url":"https://api.github.com/users/concord/repos","events_url":"https://api.github.com/users/concord/events{/privacy}","received_events_url":"https://api.github.com/users/concord/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/concord/cmd","description":"python command line tools","fork":false,"url":"https://api.github.com/repos/concord/cmd","forks_url":"https://api.github.com/repos/concord/cmd/forks","keys_url":"https://api.github.com/repos/concord/cmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/concord/cmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/concord/cmd/teams","hooks_url":"https://api.github.com/repos/concord/cmd/hooks","issue_events_url":"https://api.github.com/repos/concord/cmd/issues/events{/number}","events_url":"https://api.github.com/repos/concord/cmd/events","assignees_url":"https://api.github.com/repos/concord/cmd/assignees{/user}","branches_url":"https://api.github.com/repos/concord/cmd/branches{/branch}","tags_url":"https://api.github.com/repos/concord/cmd/tags","blobs_url":"https://api.github.com/repos/concord/cmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/concord/cmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/concord/cmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/concord/cmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/concord/cmd/statuses/{sha}","languages_url":"https://api.github.com/repos/concord/cmd/languages","stargazers_url":"https://api.github.com/repos/concord/cmd/stargazers","contributors_url":"https://api.github.com/repos/concord/cmd/contributors","subscribers_url":"https://api.github.com/repos/concord/cmd/subscribers","subscription_url":"https://api.github.com/repos/concord/cmd/subscription","commits_url":"https://api.github.com/repos/concord/cmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/concord/cmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/concord/cmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/concord/cmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/concord/cmd/contents/{+path}","compare_url":"https://api.github.com/repos/concord/cmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/concord/cmd/merges","archive_url":"https://api.github.com/repos/concord/cmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/concord/cmd/downloads","issues_url":"https://api.github.com/repos/concord/cmd/issues{/number}","pulls_url":"https://api.github.com/repos/concord/cmd/pulls{/number}","milestones_url":"https://api.github.com/repos/concord/cmd/milestones{/number}","notifications_url":"https://api.github.com/repos/concord/cmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/concord/cmd/labels{/name}","releases_url":"https://api.github.com/repos/concord/cmd/releases{/id}","created_at":"2015-04-24T17:32:39Z","updated_at":"2015-05-05T21:01:25Z","pushed_at":"2015-08-19T22:19:19Z","git_url":"git://github.com/concord/cmd.git","ssh_url":"git@github.com:concord/cmd.git","clone_url":"https://github.com/concord/cmd.git","svn_url":"https://github.com/concord/cmd","homepage":null,"size":385,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"concord:master","ref":"master","sha":"f922ceb4c824b2f17786d949843abb69ab627c93","user":{"login":"concord","id":11670344,"avatar_url":"https://avatars.githubusercontent.com/u/11670344?v=3","gravatar_id":"","url":"https://api.github.com/users/concord","html_url":"https://github.com/concord","followers_url":"https://api.github.com/users/concord/followers","following_url":"https://api.github.com/users/concord/following{/other_user}","gists_url":"https://api.github.com/users/concord/gists{/gist_id}","starred_url":"https://api.github.com/users/concord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord/subscriptions","organizations_url":"https://api.github.com/users/concord/orgs","repos_url":"https://api.github.com/users/concord/repos","events_url":"https://api.github.com/users/concord/events{/privacy}","received_events_url":"https://api.github.com/users/concord/received_events","type":"Organization","site_admin":false},"repo":{"id":34532353,"name":"cmd","full_name":"concord/cmd","owner":{"login":"concord","id":11670344,"avatar_url":"https://avatars.githubusercontent.com/u/11670344?v=3","gravatar_id":"","url":"https://api.github.com/users/concord","html_url":"https://github.com/concord","followers_url":"https://api.github.com/users/concord/followers","following_url":"https://api.github.com/users/concord/following{/other_user}","gists_url":"https://api.github.com/users/concord/gists{/gist_id}","starred_url":"https://api.github.com/users/concord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord/subscriptions","organizations_url":"https://api.github.com/users/concord/orgs","repos_url":"https://api.github.com/users/concord/repos","events_url":"https://api.github.com/users/concord/events{/privacy}","received_events_url":"https://api.github.com/users/concord/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/concord/cmd","description":"python command line tools","fork":false,"url":"https://api.github.com/repos/concord/cmd","forks_url":"https://api.github.com/repos/concord/cmd/forks","keys_url":"https://api.github.com/repos/concord/cmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/concord/cmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/concord/cmd/teams","hooks_url":"https://api.github.com/repos/concord/cmd/hooks","issue_events_url":"https://api.github.com/repos/concord/cmd/issues/events{/number}","events_url":"https://api.github.com/repos/concord/cmd/events","assignees_url":"https://api.github.com/repos/concord/cmd/assignees{/user}","branches_url":"https://api.github.com/repos/concord/cmd/branches{/branch}","tags_url":"https://api.github.com/repos/concord/cmd/tags","blobs_url":"https://api.github.com/repos/concord/cmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/concord/cmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/concord/cmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/concord/cmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/concord/cmd/statuses/{sha}","languages_url":"https://api.github.com/repos/concord/cmd/languages","stargazers_url":"https://api.github.com/repos/concord/cmd/stargazers","contributors_url":"https://api.github.com/repos/concord/cmd/contributors","subscribers_url":"https://api.github.com/repos/concord/cmd/subscribers","subscription_url":"https://api.github.com/repos/concord/cmd/subscription","commits_url":"https://api.github.com/repos/concord/cmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/concord/cmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/concord/cmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/concord/cmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/concord/cmd/contents/{+path}","compare_url":"https://api.github.com/repos/concord/cmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/concord/cmd/merges","archive_url":"https://api.github.com/repos/concord/cmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/concord/cmd/downloads","issues_url":"https://api.github.com/repos/concord/cmd/issues{/number}","pulls_url":"https://api.github.com/repos/concord/cmd/pulls{/number}","milestones_url":"https://api.github.com/repos/concord/cmd/milestones{/number}","notifications_url":"https://api.github.com/repos/concord/cmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/concord/cmd/labels{/name}","releases_url":"https://api.github.com/repos/concord/cmd/releases{/id}","created_at":"2015-04-24T17:32:39Z","updated_at":"2015-05-05T21:01:25Z","pushed_at":"2015-08-19T22:19:19Z","git_url":"git://github.com/concord/cmd.git","ssh_url":"git@github.com:concord/cmd.git","clone_url":"https://github.com/concord/cmd.git","svn_url":"https://github.com/concord/cmd","homepage":null,"size":385,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/concord/cmd/pulls/7"},"html":{"href":"https://github.com/concord/cmd/pull/7"},"issue":{"href":"https://api.github.com/repos/concord/cmd/issues/7"},"comments":{"href":"https://api.github.com/repos/concord/cmd/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/concord/cmd/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/concord/cmd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/concord/cmd/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/concord/cmd/statuses/224b9536750a3757119b049f1de0a69512d3b4bb"}}}}