{"action":"created","comment":{"url":"https://api.github.com/repos/sangoma/switchy/pulls/comments/36746141","id":36746141,"diff_hunk":"@@ -0,0 +1,116 @@\n+#!/usr/bin/python2.7\n+# vim: tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80 smarttab expandtab\n+# This Source Code Form is subject to the terms of the Mozilla Public\n+# License, v. 2.0. If a copy of the MPL was not distributed with this\n+# file, You can obtain one at http://mozilla.org/MPL/2.0/.\n+\n+import sys\n+import re\n+import time\n+import click\n+import switchy\n+import logging\n+\n+@click.group()\n+def cli():\n+    pass\n+","path":"bin/switchy","position":17,"original_position":17,"commit_id":"41c62a53d12024ac586ce3228c57a6abc0f79be0","original_commit_id":"41c62a53d12024ac586ce3228c57a6abc0f79be0","user":{"login":"moises-silva","id":680665,"avatar_url":"https://avatars.githubusercontent.com/u/680665?v=3","gravatar_id":"","url":"https://api.github.com/users/moises-silva","html_url":"https://github.com/moises-silva","followers_url":"https://api.github.com/users/moises-silva/followers","following_url":"https://api.github.com/users/moises-silva/following{/other_user}","gists_url":"https://api.github.com/users/moises-silva/gists{/gist_id}","starred_url":"https://api.github.com/users/moises-silva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moises-silva/subscriptions","organizations_url":"https://api.github.com/users/moises-silva/orgs","repos_url":"https://api.github.com/users/moises-silva/repos","events_url":"https://api.github.com/users/moises-silva/events{/privacy}","received_events_url":"https://api.github.com/users/moises-silva/received_events","type":"User","site_admin":false},"body":"Yeah ok. I'll install a linter and run it over all the changes.","created_at":"2015-08-11T13:48:58Z","updated_at":"2015-08-11T13:48:58Z","html_url":"https://github.com/sangoma/switchy/pull/9#discussion_r36746141","pull_request_url":"https://api.github.com/repos/sangoma/switchy/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/sangoma/switchy/pulls/comments/36746141"},"html":{"href":"https://github.com/sangoma/switchy/pull/9#discussion_r36746141"},"pull_request":{"href":"https://api.github.com/repos/sangoma/switchy/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/sangoma/switchy/pulls/9","id":42033233,"html_url":"https://github.com/sangoma/switchy/pull/9","diff_url":"https://github.com/sangoma/switchy/pull/9.diff","patch_url":"https://github.com/sangoma/switchy/pull/9.patch","issue_url":"https://api.github.com/repos/sangoma/switchy/issues/9","number":9,"state":"open","locked":false,"title":"Add switchy command line","user":{"login":"moises-silva","id":680665,"avatar_url":"https://avatars.githubusercontent.com/u/680665?v=3","gravatar_id":"","url":"https://api.github.com/users/moises-silva","html_url":"https://github.com/moises-silva","followers_url":"https://api.github.com/users/moises-silva/followers","following_url":"https://api.github.com/users/moises-silva/following{/other_user}","gists_url":"https://api.github.com/users/moises-silva/gists{/gist_id}","starred_url":"https://api.github.com/users/moises-silva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moises-silva/subscriptions","organizations_url":"https://api.github.com/users/moises-silva/orgs","repos_url":"https://api.github.com/users/moises-silva/repos","events_url":"https://api.github.com/users/moises-silva/events{/privacy}","received_events_url":"https://api.github.com/users/moises-silva/received_events","type":"User","site_admin":false},"body":"A command line is something needed if we want adoption by non Python programmers (which I think will be the majority of interested users).\r\n\r\nThese commits add a 'switchy' command with several sub-commands (like git does for 'git clone', git merge' etc)\r\n\r\nThe current sub-commands are:\r\n\r\nlist-apps (to list available apps)\r\nrun (to run a load test)\r\nplot (to plot saved results)\r\n\r\nIn order to be able to list available apps and display help for users I introduced an @app decorator which applications should use. More details in the commit message ...","created_at":"2015-08-10T15:35:24Z","updated_at":"2015-08-11T13:48:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86d8b3b84f2d2d6f65987fd62a202d004c04019b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sangoma/switchy/pulls/9/commits","review_comments_url":"https://api.github.com/repos/sangoma/switchy/pulls/9/comments","review_comment_url":"https://api.github.com/repos/sangoma/switchy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sangoma/switchy/issues/9/comments","statuses_url":"https://api.github.com/repos/sangoma/switchy/statuses/41c62a53d12024ac586ce3228c57a6abc0f79be0","head":{"label":"sangoma:cmdline","ref":"cmdline","sha":"41c62a53d12024ac586ce3228c57a6abc0f79be0","user":{"login":"sangoma","id":8573901,"avatar_url":"https://avatars.githubusercontent.com/u/8573901?v=3","gravatar_id":"","url":"https://api.github.com/users/sangoma","html_url":"https://github.com/sangoma","followers_url":"https://api.github.com/users/sangoma/followers","following_url":"https://api.github.com/users/sangoma/following{/other_user}","gists_url":"https://api.github.com/users/sangoma/gists{/gist_id}","starred_url":"https://api.github.com/users/sangoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangoma/subscriptions","organizations_url":"https://api.github.com/users/sangoma/orgs","repos_url":"https://api.github.com/users/sangoma/repos","events_url":"https://api.github.com/users/sangoma/events{/privacy}","received_events_url":"https://api.github.com/users/sangoma/received_events","type":"Organization","site_admin":false},"repo":{"id":30972886,"name":"switchy","full_name":"sangoma/switchy","owner":{"login":"sangoma","id":8573901,"avatar_url":"https://avatars.githubusercontent.com/u/8573901?v=3","gravatar_id":"","url":"https://api.github.com/users/sangoma","html_url":"https://github.com/sangoma","followers_url":"https://api.github.com/users/sangoma/followers","following_url":"https://api.github.com/users/sangoma/following{/other_user}","gists_url":"https://api.github.com/users/sangoma/gists{/gist_id}","starred_url":"https://api.github.com/users/sangoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangoma/subscriptions","organizations_url":"https://api.github.com/users/sangoma/orgs","repos_url":"https://api.github.com/users/sangoma/repos","events_url":"https://api.github.com/users/sangoma/events{/privacy}","received_events_url":"https://api.github.com/users/sangoma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sangoma/switchy","description":"Fast, Flexible FreeSWITCH ESL control with an emphasis on VoIP load testing","fork":false,"url":"https://api.github.com/repos/sangoma/switchy","forks_url":"https://api.github.com/repos/sangoma/switchy/forks","keys_url":"https://api.github.com/repos/sangoma/switchy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sangoma/switchy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sangoma/switchy/teams","hooks_url":"https://api.github.com/repos/sangoma/switchy/hooks","issue_events_url":"https://api.github.com/repos/sangoma/switchy/issues/events{/number}","events_url":"https://api.github.com/repos/sangoma/switchy/events","assignees_url":"https://api.github.com/repos/sangoma/switchy/assignees{/user}","branches_url":"https://api.github.com/repos/sangoma/switchy/branches{/branch}","tags_url":"https://api.github.com/repos/sangoma/switchy/tags","blobs_url":"https://api.github.com/repos/sangoma/switchy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sangoma/switchy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sangoma/switchy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sangoma/switchy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sangoma/switchy/statuses/{sha}","languages_url":"https://api.github.com/repos/sangoma/switchy/languages","stargazers_url":"https://api.github.com/repos/sangoma/switchy/stargazers","contributors_url":"https://api.github.com/repos/sangoma/switchy/contributors","subscribers_url":"https://api.github.com/repos/sangoma/switchy/subscribers","subscription_url":"https://api.github.com/repos/sangoma/switchy/subscription","commits_url":"https://api.github.com/repos/sangoma/switchy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sangoma/switchy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sangoma/switchy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sangoma/switchy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sangoma/switchy/contents/{+path}","compare_url":"https://api.github.com/repos/sangoma/switchy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sangoma/switchy/merges","archive_url":"https://api.github.com/repos/sangoma/switchy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sangoma/switchy/downloads","issues_url":"https://api.github.com/repos/sangoma/switchy/issues{/number}","pulls_url":"https://api.github.com/repos/sangoma/switchy/pulls{/number}","milestones_url":"https://api.github.com/repos/sangoma/switchy/milestones{/number}","notifications_url":"https://api.github.com/repos/sangoma/switchy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sangoma/switchy/labels{/name}","releases_url":"https://api.github.com/repos/sangoma/switchy/releases{/id}","created_at":"2015-02-18T16:01:43Z","updated_at":"2015-08-10T00:49:31Z","pushed_at":"2015-08-10T21:21:51Z","git_url":"git://github.com/sangoma/switchy.git","ssh_url":"git@github.com:sangoma/switchy.git","clone_url":"https://github.com/sangoma/switchy.git","svn_url":"https://github.com/sangoma/switchy","homepage":"https://switchy.readthedocs.org","size":446,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":11,"default_branch":"master"}},"base":{"label":"sangoma:master","ref":"master","sha":"eb74673712effb753a726279eae29e211dd4f82c","user":{"login":"sangoma","id":8573901,"avatar_url":"https://avatars.githubusercontent.com/u/8573901?v=3","gravatar_id":"","url":"https://api.github.com/users/sangoma","html_url":"https://github.com/sangoma","followers_url":"https://api.github.com/users/sangoma/followers","following_url":"https://api.github.com/users/sangoma/following{/other_user}","gists_url":"https://api.github.com/users/sangoma/gists{/gist_id}","starred_url":"https://api.github.com/users/sangoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangoma/subscriptions","organizations_url":"https://api.github.com/users/sangoma/orgs","repos_url":"https://api.github.com/users/sangoma/repos","events_url":"https://api.github.com/users/sangoma/events{/privacy}","received_events_url":"https://api.github.com/users/sangoma/received_events","type":"Organization","site_admin":false},"repo":{"id":30972886,"name":"switchy","full_name":"sangoma/switchy","owner":{"login":"sangoma","id":8573901,"avatar_url":"https://avatars.githubusercontent.com/u/8573901?v=3","gravatar_id":"","url":"https://api.github.com/users/sangoma","html_url":"https://github.com/sangoma","followers_url":"https://api.github.com/users/sangoma/followers","following_url":"https://api.github.com/users/sangoma/following{/other_user}","gists_url":"https://api.github.com/users/sangoma/gists{/gist_id}","starred_url":"https://api.github.com/users/sangoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangoma/subscriptions","organizations_url":"https://api.github.com/users/sangoma/orgs","repos_url":"https://api.github.com/users/sangoma/repos","events_url":"https://api.github.com/users/sangoma/events{/privacy}","received_events_url":"https://api.github.com/users/sangoma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sangoma/switchy","description":"Fast, Flexible FreeSWITCH ESL control with an emphasis on VoIP load testing","fork":false,"url":"https://api.github.com/repos/sangoma/switchy","forks_url":"https://api.github.com/repos/sangoma/switchy/forks","keys_url":"https://api.github.com/repos/sangoma/switchy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sangoma/switchy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sangoma/switchy/teams","hooks_url":"https://api.github.com/repos/sangoma/switchy/hooks","issue_events_url":"https://api.github.com/repos/sangoma/switchy/issues/events{/number}","events_url":"https://api.github.com/repos/sangoma/switchy/events","assignees_url":"https://api.github.com/repos/sangoma/switchy/assignees{/user}","branches_url":"https://api.github.com/repos/sangoma/switchy/branches{/branch}","tags_url":"https://api.github.com/repos/sangoma/switchy/tags","blobs_url":"https://api.github.com/repos/sangoma/switchy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sangoma/switchy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sangoma/switchy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sangoma/switchy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sangoma/switchy/statuses/{sha}","languages_url":"https://api.github.com/repos/sangoma/switchy/languages","stargazers_url":"https://api.github.com/repos/sangoma/switchy/stargazers","contributors_url":"https://api.github.com/repos/sangoma/switchy/contributors","subscribers_url":"https://api.github.com/repos/sangoma/switchy/subscribers","subscription_url":"https://api.github.com/repos/sangoma/switchy/subscription","commits_url":"https://api.github.com/repos/sangoma/switchy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sangoma/switchy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sangoma/switchy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sangoma/switchy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sangoma/switchy/contents/{+path}","compare_url":"https://api.github.com/repos/sangoma/switchy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sangoma/switchy/merges","archive_url":"https://api.github.com/repos/sangoma/switchy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sangoma/switchy/downloads","issues_url":"https://api.github.com/repos/sangoma/switchy/issues{/number}","pulls_url":"https://api.github.com/repos/sangoma/switchy/pulls{/number}","milestones_url":"https://api.github.com/repos/sangoma/switchy/milestones{/number}","notifications_url":"https://api.github.com/repos/sangoma/switchy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sangoma/switchy/labels{/name}","releases_url":"https://api.github.com/repos/sangoma/switchy/releases{/id}","created_at":"2015-02-18T16:01:43Z","updated_at":"2015-08-10T00:49:31Z","pushed_at":"2015-08-10T21:21:51Z","git_url":"git://github.com/sangoma/switchy.git","ssh_url":"git@github.com:sangoma/switchy.git","clone_url":"https://github.com/sangoma/switchy.git","svn_url":"https://github.com/sangoma/switchy","homepage":"https://switchy.readthedocs.org","size":446,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sangoma/switchy/pulls/9"},"html":{"href":"https://github.com/sangoma/switchy/pull/9"},"issue":{"href":"https://api.github.com/repos/sangoma/switchy/issues/9"},"comments":{"href":"https://api.github.com/repos/sangoma/switchy/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/sangoma/switchy/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/sangoma/switchy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sangoma/switchy/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/sangoma/switchy/statuses/41c62a53d12024ac586ce3228c57a6abc0f79be0"}}}}