{"action":"created","comment":{"url":"https://api.github.com/repos/Originate/mycha/pulls/comments/26997752","id":26997752,"diff_hunk":"@@ -0,0 +1,41 @@\n+async = require 'async'\n+minimist = require 'minimist'\n+MychaInstaller = require './mycha_installer'\n+MochaRunner = require './mocha_runner'\n+prompt = require 'prompt'\n+\n+\n+argv = process.argv.slice 2\n+cwd = process.cwd()\n+\n+\n+exitWithError = (err) ->\n+  console.error err\n+  process.exit 1\n+\n+\n+getTestHelperPath = (done) ->\n+  prompt.start()\n+  prompt.get [\n+    description: 'Default test helper path',\n+    name: 'testHelperPath'\n+    required: true\n+  ], (err, {testHelperPath} = {}) ->\n+    if err then return done err\n+    done null, testHelperPath\n+\n+\n+installMycha = (testHelperPath, done) ->\n+  installer = new MychaInstaller {cwd, testHelperPath}\n+  installer.install done\n+\n+\n+if minimist(argv)._[0] is 'install'","path":"lib/cli.coffee","position":33,"original_position":33,"commit_id":"4b7ac32e57f936792f881eb2e6f3f3b139f67fd8","original_commit_id":"451cdbcaf8d5496e6f7dbbe56d5984bcead5c1db","user":{"login":"kevgo","id":268934,"avatar_url":"https://avatars.githubusercontent.com/u/268934?v=3","gravatar_id":"","url":"https://api.github.com/users/kevgo","html_url":"https://github.com/kevgo","followers_url":"https://api.github.com/users/kevgo/followers","following_url":"https://api.github.com/users/kevgo/following{/other_user}","gists_url":"https://api.github.com/users/kevgo/gists{/gist_id}","starred_url":"https://api.github.com/users/kevgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevgo/subscriptions","organizations_url":"https://api.github.com/users/kevgo/orgs","repos_url":"https://api.github.com/users/kevgo/repos","events_url":"https://api.github.com/users/kevgo/events{/privacy}","received_events_url":"https://api.github.com/users/kevgo/received_events","type":"User","site_admin":false},"body":"Not a fan of minimist. Why can't you use nconf here?","created_at":"2015-03-24T01:38:16Z","updated_at":"2015-03-24T01:38:16Z","html_url":"https://github.com/Originate/mycha/pull/47#discussion_r26997752","pull_request_url":"https://api.github.com/repos/Originate/mycha/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/Originate/mycha/pulls/comments/26997752"},"html":{"href":"https://github.com/Originate/mycha/pull/47#discussion_r26997752"},"pull_request":{"href":"https://api.github.com/repos/Originate/mycha/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/Originate/mycha/pulls/47","id":31190623,"html_url":"https://github.com/Originate/mycha/pull/47","diff_url":"https://github.com/Originate/mycha/pull/47.diff","patch_url":"https://github.com/Originate/mycha/pull/47.patch","issue_url":"https://api.github.com/repos/Originate/mycha/issues/47","number":47,"state":"open","locked":false,"title":"new interface","user":{"login":"charlierudolph","id":1676758,"avatar_url":"https://avatars.githubusercontent.com/u/1676758?v=3","gravatar_id":"","url":"https://api.github.com/users/charlierudolph","html_url":"https://github.com/charlierudolph","followers_url":"https://api.github.com/users/charlierudolph/followers","following_url":"https://api.github.com/users/charlierudolph/following{/other_user}","gists_url":"https://api.github.com/users/charlierudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/charlierudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlierudolph/subscriptions","organizations_url":"https://api.github.com/users/charlierudolph/orgs","repos_url":"https://api.github.com/users/charlierudolph/repos","events_url":"https://api.github.com/users/charlierudolph/events{/privacy}","received_events_url":"https://api.github.com/users/charlierudolph/received_events","type":"User","site_admin":false},"body":"@alexdavid @kevgo \r\n\r\nThis is my proposed new interface for mycha.\r\nchai, sinon, and sinon-chai would no longer be dependencies.\r\nIf we come to an agreement on this, I will move forward with implementing it.","created_at":"2015-03-14T21:37:19Z","updated_at":"2015-03-24T01:38:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"236f9e36a9e56da039359d4ffdbba6cbf4fd4a12","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Originate/mycha/pulls/47/commits","review_comments_url":"https://api.github.com/repos/Originate/mycha/pulls/47/comments","review_comment_url":"https://api.github.com/repos/Originate/mycha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Originate/mycha/issues/47/comments","statuses_url":"https://api.github.com/repos/Originate/mycha/statuses/4b7ac32e57f936792f881eb2e6f3f3b139f67fd8","head":{"label":"Originate:cr-newInterface","ref":"cr-newInterface","sha":"4b7ac32e57f936792f881eb2e6f3f3b139f67fd8","user":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"repo":{"id":9158178,"name":"mycha","full_name":"Originate/mycha","owner":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Originate/mycha","description":"Painless testing setup for Node.JS using Mocha, Chai, and Sinon.js","fork":false,"url":"https://api.github.com/repos/Originate/mycha","forks_url":"https://api.github.com/repos/Originate/mycha/forks","keys_url":"https://api.github.com/repos/Originate/mycha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Originate/mycha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Originate/mycha/teams","hooks_url":"https://api.github.com/repos/Originate/mycha/hooks","issue_events_url":"https://api.github.com/repos/Originate/mycha/issues/events{/number}","events_url":"https://api.github.com/repos/Originate/mycha/events","assignees_url":"https://api.github.com/repos/Originate/mycha/assignees{/user}","branches_url":"https://api.github.com/repos/Originate/mycha/branches{/branch}","tags_url":"https://api.github.com/repos/Originate/mycha/tags","blobs_url":"https://api.github.com/repos/Originate/mycha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Originate/mycha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Originate/mycha/git/refs{/sha}","trees_url":"https://api.github.com/repos/Originate/mycha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Originate/mycha/statuses/{sha}","languages_url":"https://api.github.com/repos/Originate/mycha/languages","stargazers_url":"https://api.github.com/repos/Originate/mycha/stargazers","contributors_url":"https://api.github.com/repos/Originate/mycha/contributors","subscribers_url":"https://api.github.com/repos/Originate/mycha/subscribers","subscription_url":"https://api.github.com/repos/Originate/mycha/subscription","commits_url":"https://api.github.com/repos/Originate/mycha/commits{/sha}","git_commits_url":"https://api.github.com/repos/Originate/mycha/git/commits{/sha}","comments_url":"https://api.github.com/repos/Originate/mycha/comments{/number}","issue_comment_url":"https://api.github.com/repos/Originate/mycha/issues/comments{/number}","contents_url":"https://api.github.com/repos/Originate/mycha/contents/{+path}","compare_url":"https://api.github.com/repos/Originate/mycha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Originate/mycha/merges","archive_url":"https://api.github.com/repos/Originate/mycha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Originate/mycha/downloads","issues_url":"https://api.github.com/repos/Originate/mycha/issues{/number}","pulls_url":"https://api.github.com/repos/Originate/mycha/pulls{/number}","milestones_url":"https://api.github.com/repos/Originate/mycha/milestones{/number}","notifications_url":"https://api.github.com/repos/Originate/mycha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Originate/mycha/labels{/name}","releases_url":"https://api.github.com/repos/Originate/mycha/releases{/id}","created_at":"2013-04-01T23:18:50Z","updated_at":"2015-02-24T17:51:36Z","pushed_at":"2015-03-24T00:31:55Z","git_url":"git://github.com/Originate/mycha.git","ssh_url":"git@github.com:Originate/mycha.git","clone_url":"https://github.com/Originate/mycha.git","svn_url":"https://github.com/Originate/mycha","homepage":null,"size":860,"stargazers_count":3,"watchers_count":3,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":3,"default_branch":"master"}},"base":{"label":"Originate:master","ref":"master","sha":"79315f65b05d41caca0bcb1641ca6614e1f942a5","user":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"repo":{"id":9158178,"name":"mycha","full_name":"Originate/mycha","owner":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Originate/mycha","description":"Painless testing setup for Node.JS using Mocha, Chai, and Sinon.js","fork":false,"url":"https://api.github.com/repos/Originate/mycha","forks_url":"https://api.github.com/repos/Originate/mycha/forks","keys_url":"https://api.github.com/repos/Originate/mycha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Originate/mycha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Originate/mycha/teams","hooks_url":"https://api.github.com/repos/Originate/mycha/hooks","issue_events_url":"https://api.github.com/repos/Originate/mycha/issues/events{/number}","events_url":"https://api.github.com/repos/Originate/mycha/events","assignees_url":"https://api.github.com/repos/Originate/mycha/assignees{/user}","branches_url":"https://api.github.com/repos/Originate/mycha/branches{/branch}","tags_url":"https://api.github.com/repos/Originate/mycha/tags","blobs_url":"https://api.github.com/repos/Originate/mycha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Originate/mycha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Originate/mycha/git/refs{/sha}","trees_url":"https://api.github.com/repos/Originate/mycha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Originate/mycha/statuses/{sha}","languages_url":"https://api.github.com/repos/Originate/mycha/languages","stargazers_url":"https://api.github.com/repos/Originate/mycha/stargazers","contributors_url":"https://api.github.com/repos/Originate/mycha/contributors","subscribers_url":"https://api.github.com/repos/Originate/mycha/subscribers","subscription_url":"https://api.github.com/repos/Originate/mycha/subscription","commits_url":"https://api.github.com/repos/Originate/mycha/commits{/sha}","git_commits_url":"https://api.github.com/repos/Originate/mycha/git/commits{/sha}","comments_url":"https://api.github.com/repos/Originate/mycha/comments{/number}","issue_comment_url":"https://api.github.com/repos/Originate/mycha/issues/comments{/number}","contents_url":"https://api.github.com/repos/Originate/mycha/contents/{+path}","compare_url":"https://api.github.com/repos/Originate/mycha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Originate/mycha/merges","archive_url":"https://api.github.com/repos/Originate/mycha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Originate/mycha/downloads","issues_url":"https://api.github.com/repos/Originate/mycha/issues{/number}","pulls_url":"https://api.github.com/repos/Originate/mycha/pulls{/number}","milestones_url":"https://api.github.com/repos/Originate/mycha/milestones{/number}","notifications_url":"https://api.github.com/repos/Originate/mycha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Originate/mycha/labels{/name}","releases_url":"https://api.github.com/repos/Originate/mycha/releases{/id}","created_at":"2013-04-01T23:18:50Z","updated_at":"2015-02-24T17:51:36Z","pushed_at":"2015-03-24T00:31:55Z","git_url":"git://github.com/Originate/mycha.git","ssh_url":"git@github.com:Originate/mycha.git","clone_url":"https://github.com/Originate/mycha.git","svn_url":"https://github.com/Originate/mycha","homepage":null,"size":860,"stargazers_count":3,"watchers_count":3,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Originate/mycha/pulls/47"},"html":{"href":"https://github.com/Originate/mycha/pull/47"},"issue":{"href":"https://api.github.com/repos/Originate/mycha/issues/47"},"comments":{"href":"https://api.github.com/repos/Originate/mycha/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/Originate/mycha/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/Originate/mycha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Originate/mycha/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/Originate/mycha/statuses/4b7ac32e57f936792f881eb2e6f3f3b139f67fd8"}}}}