{"action":"created","comment":{"url":"https://api.github.com/repos/dbcli/mycli/pulls/comments/42304913","id":42304913,"diff_hunk":"@@ -0,0 +1,26 @@\n+import os\n+import subprocess\n+\n+def handle_cd_command(arg):\n+    \"\"\"Handles a `cd` shell command by calling python's os.chdir.\"\"\"\n+    CD_CMD = 'cd'\n+    command = arg.strip()","path":"mycli/packages/special/utils.py","position":7,"original_position":7,"commit_id":"084e7ae769cde2b2cdae9a166be8c39b148b7125","original_commit_id":"084e7ae769cde2b2cdae9a166be8c39b148b7125","user":{"login":"amjith","id":49260,"avatar_url":"https://avatars.githubusercontent.com/u/49260?v=3","gravatar_id":"","url":"https://api.github.com/users/amjith","html_url":"https://github.com/amjith","followers_url":"https://api.github.com/users/amjith/followers","following_url":"https://api.github.com/users/amjith/following{/other_user}","gists_url":"https://api.github.com/users/amjith/gists{/gist_id}","starred_url":"https://api.github.com/users/amjith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amjith/subscriptions","organizations_url":"https://api.github.com/users/amjith/orgs","repos_url":"https://api.github.com/users/amjith/repos","events_url":"https://api.github.com/users/amjith/events{/privacy}","received_events_url":"https://api.github.com/users/amjith/received_events","type":"User","site_admin":false},"body":"This variable `command` is not used anywhere in this function. ","created_at":"2015-10-17T02:58:36Z","updated_at":"2015-10-17T02:58:36Z","html_url":"https://github.com/dbcli/mycli/pull/174#discussion_r42304913","pull_request_url":"https://api.github.com/repos/dbcli/mycli/pulls/174","_links":{"self":{"href":"https://api.github.com/repos/dbcli/mycli/pulls/comments/42304913"},"html":{"href":"https://github.com/dbcli/mycli/pull/174#discussion_r42304913"},"pull_request":{"href":"https://api.github.com/repos/dbcli/mycli/pulls/174"}}},"pull_request":{"url":"https://api.github.com/repos/dbcli/mycli/pulls/174","id":47942828,"html_url":"https://github.com/dbcli/mycli/pull/174","diff_url":"https://github.com/dbcli/mycli/pull/174.diff","patch_url":"https://github.com/dbcli/mycli/pull/174.patch","issue_url":"https://api.github.com/repos/dbcli/mycli/issues/174","number":174,"state":"open","locked":false,"title":"Add support for the system command","user":{"login":"mdsrosa","id":1862239,"avatar_url":"https://avatars.githubusercontent.com/u/1862239?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsrosa","html_url":"https://github.com/mdsrosa","followers_url":"https://api.github.com/users/mdsrosa/followers","following_url":"https://api.github.com/users/mdsrosa/following{/other_user}","gists_url":"https://api.github.com/users/mdsrosa/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsrosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsrosa/subscriptions","organizations_url":"https://api.github.com/users/mdsrosa/orgs","repos_url":"https://api.github.com/users/mdsrosa/repos","events_url":"https://api.github.com/users/mdsrosa/events{/privacy}","received_events_url":"https://api.github.com/users/mdsrosa/received_events","type":"User","site_admin":false},"body":"Fixes #130.\r\n\r\nThe `system` command is very useful. So what I did was register a \"special command\" to execute system commands.","created_at":"2015-10-16T18:18:16Z","updated_at":"2015-10-17T02:58:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e3b7eaf5514be8daf8eaf07634132cf2d880fe3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dbcli/mycli/pulls/174/commits","review_comments_url":"https://api.github.com/repos/dbcli/mycli/pulls/174/comments","review_comment_url":"https://api.github.com/repos/dbcli/mycli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dbcli/mycli/issues/174/comments","statuses_url":"https://api.github.com/repos/dbcli/mycli/statuses/084e7ae769cde2b2cdae9a166be8c39b148b7125","head":{"label":"mdsrosa:system_command","ref":"system_command","sha":"084e7ae769cde2b2cdae9a166be8c39b148b7125","user":{"login":"mdsrosa","id":1862239,"avatar_url":"https://avatars.githubusercontent.com/u/1862239?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsrosa","html_url":"https://github.com/mdsrosa","followers_url":"https://api.github.com/users/mdsrosa/followers","following_url":"https://api.github.com/users/mdsrosa/following{/other_user}","gists_url":"https://api.github.com/users/mdsrosa/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsrosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsrosa/subscriptions","organizations_url":"https://api.github.com/users/mdsrosa/orgs","repos_url":"https://api.github.com/users/mdsrosa/repos","events_url":"https://api.github.com/users/mdsrosa/events{/privacy}","received_events_url":"https://api.github.com/users/mdsrosa/received_events","type":"User","site_admin":false},"repo":{"id":40243521,"name":"mycli","full_name":"mdsrosa/mycli","owner":{"login":"mdsrosa","id":1862239,"avatar_url":"https://avatars.githubusercontent.com/u/1862239?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsrosa","html_url":"https://github.com/mdsrosa","followers_url":"https://api.github.com/users/mdsrosa/followers","following_url":"https://api.github.com/users/mdsrosa/following{/other_user}","gists_url":"https://api.github.com/users/mdsrosa/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsrosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsrosa/subscriptions","organizations_url":"https://api.github.com/users/mdsrosa/orgs","repos_url":"https://api.github.com/users/mdsrosa/repos","events_url":"https://api.github.com/users/mdsrosa/events{/privacy}","received_events_url":"https://api.github.com/users/mdsrosa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mdsrosa/mycli","description":"A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.","fork":true,"url":"https://api.github.com/repos/mdsrosa/mycli","forks_url":"https://api.github.com/repos/mdsrosa/mycli/forks","keys_url":"https://api.github.com/repos/mdsrosa/mycli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdsrosa/mycli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdsrosa/mycli/teams","hooks_url":"https://api.github.com/repos/mdsrosa/mycli/hooks","issue_events_url":"https://api.github.com/repos/mdsrosa/mycli/issues/events{/number}","events_url":"https://api.github.com/repos/mdsrosa/mycli/events","assignees_url":"https://api.github.com/repos/mdsrosa/mycli/assignees{/user}","branches_url":"https://api.github.com/repos/mdsrosa/mycli/branches{/branch}","tags_url":"https://api.github.com/repos/mdsrosa/mycli/tags","blobs_url":"https://api.github.com/repos/mdsrosa/mycli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdsrosa/mycli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdsrosa/mycli/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdsrosa/mycli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdsrosa/mycli/statuses/{sha}","languages_url":"https://api.github.com/repos/mdsrosa/mycli/languages","stargazers_url":"https://api.github.com/repos/mdsrosa/mycli/stargazers","contributors_url":"https://api.github.com/repos/mdsrosa/mycli/contributors","subscribers_url":"https://api.github.com/repos/mdsrosa/mycli/subscribers","subscription_url":"https://api.github.com/repos/mdsrosa/mycli/subscription","commits_url":"https://api.github.com/repos/mdsrosa/mycli/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdsrosa/mycli/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdsrosa/mycli/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdsrosa/mycli/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdsrosa/mycli/contents/{+path}","compare_url":"https://api.github.com/repos/mdsrosa/mycli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdsrosa/mycli/merges","archive_url":"https://api.github.com/repos/mdsrosa/mycli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdsrosa/mycli/downloads","issues_url":"https://api.github.com/repos/mdsrosa/mycli/issues{/number}","pulls_url":"https://api.github.com/repos/mdsrosa/mycli/pulls{/number}","milestones_url":"https://api.github.com/repos/mdsrosa/mycli/milestones{/number}","notifications_url":"https://api.github.com/repos/mdsrosa/mycli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdsrosa/mycli/labels{/name}","releases_url":"https://api.github.com/repos/mdsrosa/mycli/releases{/id}","created_at":"2015-08-05T12:17:16Z","updated_at":"2015-08-05T12:17:17Z","pushed_at":"2015-10-17T02:45:57Z","git_url":"git://github.com/mdsrosa/mycli.git","ssh_url":"git@github.com:mdsrosa/mycli.git","clone_url":"https://github.com/mdsrosa/mycli.git","svn_url":"https://github.com/mdsrosa/mycli","homepage":"","size":642,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dbcli:master","ref":"master","sha":"f8b84a7d2d9d5c923e7e2e12df85fd692e440588","user":{"login":"dbcli","id":11810727,"avatar_url":"https://avatars.githubusercontent.com/u/11810727?v=3","gravatar_id":"","url":"https://api.github.com/users/dbcli","html_url":"https://github.com/dbcli","followers_url":"https://api.github.com/users/dbcli/followers","following_url":"https://api.github.com/users/dbcli/following{/other_user}","gists_url":"https://api.github.com/users/dbcli/gists{/gist_id}","starred_url":"https://api.github.com/users/dbcli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbcli/subscriptions","organizations_url":"https://api.github.com/users/dbcli/orgs","repos_url":"https://api.github.com/users/dbcli/repos","events_url":"https://api.github.com/users/dbcli/events{/privacy}","received_events_url":"https://api.github.com/users/dbcli/received_events","type":"Organization","site_admin":false},"repo":{"id":33457642,"name":"mycli","full_name":"dbcli/mycli","owner":{"login":"dbcli","id":11810727,"avatar_url":"https://avatars.githubusercontent.com/u/11810727?v=3","gravatar_id":"","url":"https://api.github.com/users/dbcli","html_url":"https://github.com/dbcli","followers_url":"https://api.github.com/users/dbcli/followers","following_url":"https://api.github.com/users/dbcli/following{/other_user}","gists_url":"https://api.github.com/users/dbcli/gists{/gist_id}","starred_url":"https://api.github.com/users/dbcli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbcli/subscriptions","organizations_url":"https://api.github.com/users/dbcli/orgs","repos_url":"https://api.github.com/users/dbcli/repos","events_url":"https://api.github.com/users/dbcli/events{/privacy}","received_events_url":"https://api.github.com/users/dbcli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dbcli/mycli","description":"A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.","fork":false,"url":"https://api.github.com/repos/dbcli/mycli","forks_url":"https://api.github.com/repos/dbcli/mycli/forks","keys_url":"https://api.github.com/repos/dbcli/mycli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dbcli/mycli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dbcli/mycli/teams","hooks_url":"https://api.github.com/repos/dbcli/mycli/hooks","issue_events_url":"https://api.github.com/repos/dbcli/mycli/issues/events{/number}","events_url":"https://api.github.com/repos/dbcli/mycli/events","assignees_url":"https://api.github.com/repos/dbcli/mycli/assignees{/user}","branches_url":"https://api.github.com/repos/dbcli/mycli/branches{/branch}","tags_url":"https://api.github.com/repos/dbcli/mycli/tags","blobs_url":"https://api.github.com/repos/dbcli/mycli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dbcli/mycli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dbcli/mycli/git/refs{/sha}","trees_url":"https://api.github.com/repos/dbcli/mycli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dbcli/mycli/statuses/{sha}","languages_url":"https://api.github.com/repos/dbcli/mycli/languages","stargazers_url":"https://api.github.com/repos/dbcli/mycli/stargazers","contributors_url":"https://api.github.com/repos/dbcli/mycli/contributors","subscribers_url":"https://api.github.com/repos/dbcli/mycli/subscribers","subscription_url":"https://api.github.com/repos/dbcli/mycli/subscription","commits_url":"https://api.github.com/repos/dbcli/mycli/commits{/sha}","git_commits_url":"https://api.github.com/repos/dbcli/mycli/git/commits{/sha}","comments_url":"https://api.github.com/repos/dbcli/mycli/comments{/number}","issue_comment_url":"https://api.github.com/repos/dbcli/mycli/issues/comments{/number}","contents_url":"https://api.github.com/repos/dbcli/mycli/contents/{+path}","compare_url":"https://api.github.com/repos/dbcli/mycli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dbcli/mycli/merges","archive_url":"https://api.github.com/repos/dbcli/mycli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dbcli/mycli/downloads","issues_url":"https://api.github.com/repos/dbcli/mycli/issues{/number}","pulls_url":"https://api.github.com/repos/dbcli/mycli/pulls{/number}","milestones_url":"https://api.github.com/repos/dbcli/mycli/milestones{/number}","notifications_url":"https://api.github.com/repos/dbcli/mycli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dbcli/mycli/labels{/name}","releases_url":"https://api.github.com/repos/dbcli/mycli/releases{/id}","created_at":"2015-04-05T22:39:49Z","updated_at":"2015-10-15T03:07:14Z","pushed_at":"2015-10-17T02:45:57Z","git_url":"git://github.com/dbcli/mycli.git","ssh_url":"git@github.com:dbcli/mycli.git","clone_url":"https://github.com/dbcli/mycli.git","svn_url":"https://github.com/dbcli/mycli","homepage":"","size":1153,"stargazers_count":2072,"watchers_count":2072,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":30,"forks":96,"open_issues":30,"watchers":2072,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dbcli/mycli/pulls/174"},"html":{"href":"https://github.com/dbcli/mycli/pull/174"},"issue":{"href":"https://api.github.com/repos/dbcli/mycli/issues/174"},"comments":{"href":"https://api.github.com/repos/dbcli/mycli/issues/174/comments"},"review_comments":{"href":"https://api.github.com/repos/dbcli/mycli/pulls/174/comments"},"review_comment":{"href":"https://api.github.com/repos/dbcli/mycli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dbcli/mycli/pulls/174/commits"},"statuses":{"href":"https://api.github.com/repos/dbcli/mycli/statuses/084e7ae769cde2b2cdae9a166be8c39b148b7125"}}}}