{"action":"created","comment":{"url":"https://api.github.com/repos/rnpm/rnpm/pulls/comments/46826851","id":46826851,"diff_hunk":"@@ -0,0 +1,50 @@\n+const path = require('path');\n+const Module = require('module');\n+const expect = require('chai').expect;\n+const getCommands = require('../src/getCommands');\n+const findPlugins = require('../src/findPlugins');\n+const mockRequire = require('mock-require');\n+const mockFs = require('mock-fs');\n+\n+const commands = getCommands();","path":"test/getCommands.spec.js","position":9,"original_position":9,"commit_id":"a1928d6122795984744f5750b721fdfea26af0b8","original_commit_id":"a1928d6122795984744f5750b721fdfea26af0b8","user":{"login":"grabbou","id":2464966,"avatar_url":"https://avatars.githubusercontent.com/u/2464966?v=3","gravatar_id":"","url":"https://api.github.com/users/grabbou","html_url":"https://github.com/grabbou","followers_url":"https://api.github.com/users/grabbou/followers","following_url":"https://api.github.com/users/grabbou/following{/other_user}","gists_url":"https://api.github.com/users/grabbou/gists{/gist_id}","starred_url":"https://api.github.com/users/grabbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grabbou/subscriptions","organizations_url":"https://api.github.com/users/grabbou/orgs","repos_url":"https://api.github.com/users/grabbou/repos","events_url":"https://api.github.com/users/grabbou/events{/privacy}","received_events_url":"https://api.github.com/users/grabbou/received_events","type":"User","site_admin":false},"body":"Can we call `getCommands()` in every suite separately instead of having global reference?","created_at":"2015-12-07T14:39:40Z","updated_at":"2015-12-07T14:39:40Z","html_url":"https://github.com/rnpm/rnpm/pull/35#discussion_r46826851","pull_request_url":"https://api.github.com/repos/rnpm/rnpm/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/rnpm/rnpm/pulls/comments/46826851"},"html":{"href":"https://github.com/rnpm/rnpm/pull/35#discussion_r46826851"},"pull_request":{"href":"https://api.github.com/repos/rnpm/rnpm/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/rnpm/rnpm/pulls/35","id":52688763,"html_url":"https://github.com/rnpm/rnpm/pull/35","diff_url":"https://github.com/rnpm/rnpm/pull/35.diff","patch_url":"https://github.com/rnpm/rnpm/pull/35.patch","issue_url":"https://api.github.com/repos/rnpm/rnpm/issues/35","number":35,"state":"open","locked":false,"title":"Feature/support multiple actions","user":{"login":"Kureev","id":2273613,"avatar_url":"https://avatars.githubusercontent.com/u/2273613?v=3","gravatar_id":"","url":"https://api.github.com/users/Kureev","html_url":"https://github.com/Kureev","followers_url":"https://api.github.com/users/Kureev/followers","following_url":"https://api.github.com/users/Kureev/following{/other_user}","gists_url":"https://api.github.com/users/Kureev/gists{/gist_id}","starred_url":"https://api.github.com/users/Kureev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kureev/subscriptions","organizations_url":"https://api.github.com/users/Kureev/orgs","repos_url":"https://api.github.com/users/Kureev/repos","events_url":"https://api.github.com/users/Kureev/events{/privacy}","received_events_url":"https://api.github.com/users/Kureev/received_events","type":"User","site_admin":false},"body":"At the current moment, we have 1 to 1 plugin-command relation. But sometimes it's not enough: for some plugins you want to expose multiple actions (like for `rnpm-plugin-link` you want to expose `link` and `unlink` command). This PR will allow to do this.","created_at":"2015-12-04T16:18:26Z","updated_at":"2015-12-07T14:39:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b4c3ffe317d097d694cb3d39b7e2b6a9ebc9cd8","assignee":{"login":"grabbou","id":2464966,"avatar_url":"https://avatars.githubusercontent.com/u/2464966?v=3","gravatar_id":"","url":"https://api.github.com/users/grabbou","html_url":"https://github.com/grabbou","followers_url":"https://api.github.com/users/grabbou/followers","following_url":"https://api.github.com/users/grabbou/following{/other_user}","gists_url":"https://api.github.com/users/grabbou/gists{/gist_id}","starred_url":"https://api.github.com/users/grabbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grabbou/subscriptions","organizations_url":"https://api.github.com/users/grabbou/orgs","repos_url":"https://api.github.com/users/grabbou/repos","events_url":"https://api.github.com/users/grabbou/events{/privacy}","received_events_url":"https://api.github.com/users/grabbou/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rnpm/rnpm/pulls/35/commits","review_comments_url":"https://api.github.com/repos/rnpm/rnpm/pulls/35/comments","review_comment_url":"https://api.github.com/repos/rnpm/rnpm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rnpm/rnpm/issues/35/comments","statuses_url":"https://api.github.com/repos/rnpm/rnpm/statuses/a1928d6122795984744f5750b721fdfea26af0b8","head":{"label":"rnpm:feature/support-multiple-actions","ref":"feature/support-multiple-actions","sha":"a1928d6122795984744f5750b721fdfea26af0b8","user":{"login":"rnpm","id":16019332,"avatar_url":"https://avatars.githubusercontent.com/u/16019332?v=3","gravatar_id":"","url":"https://api.github.com/users/rnpm","html_url":"https://github.com/rnpm","followers_url":"https://api.github.com/users/rnpm/followers","following_url":"https://api.github.com/users/rnpm/following{/other_user}","gists_url":"https://api.github.com/users/rnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/rnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnpm/subscriptions","organizations_url":"https://api.github.com/users/rnpm/orgs","repos_url":"https://api.github.com/users/rnpm/repos","events_url":"https://api.github.com/users/rnpm/events{/privacy}","received_events_url":"https://api.github.com/users/rnpm/received_events","type":"Organization","site_admin":false},"repo":{"id":46366544,"name":"rnpm","full_name":"rnpm/rnpm","owner":{"login":"rnpm","id":16019332,"avatar_url":"https://avatars.githubusercontent.com/u/16019332?v=3","gravatar_id":"","url":"https://api.github.com/users/rnpm","html_url":"https://github.com/rnpm","followers_url":"https://api.github.com/users/rnpm/followers","following_url":"https://api.github.com/users/rnpm/following{/other_user}","gists_url":"https://api.github.com/users/rnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/rnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnpm/subscriptions","organizations_url":"https://api.github.com/users/rnpm/orgs","repos_url":"https://api.github.com/users/rnpm/repos","events_url":"https://api.github.com/users/rnpm/events{/privacy}","received_events_url":"https://api.github.com/users/rnpm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rnpm/rnpm","description":":iphone: React Native Package Manager","fork":false,"url":"https://api.github.com/repos/rnpm/rnpm","forks_url":"https://api.github.com/repos/rnpm/rnpm/forks","keys_url":"https://api.github.com/repos/rnpm/rnpm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rnpm/rnpm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rnpm/rnpm/teams","hooks_url":"https://api.github.com/repos/rnpm/rnpm/hooks","issue_events_url":"https://api.github.com/repos/rnpm/rnpm/issues/events{/number}","events_url":"https://api.github.com/repos/rnpm/rnpm/events","assignees_url":"https://api.github.com/repos/rnpm/rnpm/assignees{/user}","branches_url":"https://api.github.com/repos/rnpm/rnpm/branches{/branch}","tags_url":"https://api.github.com/repos/rnpm/rnpm/tags","blobs_url":"https://api.github.com/repos/rnpm/rnpm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rnpm/rnpm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rnpm/rnpm/git/refs{/sha}","trees_url":"https://api.github.com/repos/rnpm/rnpm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rnpm/rnpm/statuses/{sha}","languages_url":"https://api.github.com/repos/rnpm/rnpm/languages","stargazers_url":"https://api.github.com/repos/rnpm/rnpm/stargazers","contributors_url":"https://api.github.com/repos/rnpm/rnpm/contributors","subscribers_url":"https://api.github.com/repos/rnpm/rnpm/subscribers","subscription_url":"https://api.github.com/repos/rnpm/rnpm/subscription","commits_url":"https://api.github.com/repos/rnpm/rnpm/commits{/sha}","git_commits_url":"https://api.github.com/repos/rnpm/rnpm/git/commits{/sha}","comments_url":"https://api.github.com/repos/rnpm/rnpm/comments{/number}","issue_comment_url":"https://api.github.com/repos/rnpm/rnpm/issues/comments{/number}","contents_url":"https://api.github.com/repos/rnpm/rnpm/contents/{+path}","compare_url":"https://api.github.com/repos/rnpm/rnpm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rnpm/rnpm/merges","archive_url":"https://api.github.com/repos/rnpm/rnpm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rnpm/rnpm/downloads","issues_url":"https://api.github.com/repos/rnpm/rnpm/issues{/number}","pulls_url":"https://api.github.com/repos/rnpm/rnpm/pulls{/number}","milestones_url":"https://api.github.com/repos/rnpm/rnpm/milestones{/number}","notifications_url":"https://api.github.com/repos/rnpm/rnpm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rnpm/rnpm/labels{/name}","releases_url":"https://api.github.com/repos/rnpm/rnpm/releases{/id}","created_at":"2015-11-17T18:23:39Z","updated_at":"2015-12-07T11:56:58Z","pushed_at":"2015-12-06T02:05:17Z","git_url":"git://github.com/rnpm/rnpm.git","ssh_url":"git@github.com:rnpm/rnpm.git","clone_url":"https://github.com/rnpm/rnpm.git","svn_url":"https://github.com/rnpm/rnpm","homepage":"","size":214,"stargazers_count":253,"watchers_count":253,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":253,"default_branch":"master"}},"base":{"label":"rnpm:master","ref":"master","sha":"16a42a75f5f98207f482cf6d518026a293330dcb","user":{"login":"rnpm","id":16019332,"avatar_url":"https://avatars.githubusercontent.com/u/16019332?v=3","gravatar_id":"","url":"https://api.github.com/users/rnpm","html_url":"https://github.com/rnpm","followers_url":"https://api.github.com/users/rnpm/followers","following_url":"https://api.github.com/users/rnpm/following{/other_user}","gists_url":"https://api.github.com/users/rnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/rnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnpm/subscriptions","organizations_url":"https://api.github.com/users/rnpm/orgs","repos_url":"https://api.github.com/users/rnpm/repos","events_url":"https://api.github.com/users/rnpm/events{/privacy}","received_events_url":"https://api.github.com/users/rnpm/received_events","type":"Organization","site_admin":false},"repo":{"id":46366544,"name":"rnpm","full_name":"rnpm/rnpm","owner":{"login":"rnpm","id":16019332,"avatar_url":"https://avatars.githubusercontent.com/u/16019332?v=3","gravatar_id":"","url":"https://api.github.com/users/rnpm","html_url":"https://github.com/rnpm","followers_url":"https://api.github.com/users/rnpm/followers","following_url":"https://api.github.com/users/rnpm/following{/other_user}","gists_url":"https://api.github.com/users/rnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/rnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnpm/subscriptions","organizations_url":"https://api.github.com/users/rnpm/orgs","repos_url":"https://api.github.com/users/rnpm/repos","events_url":"https://api.github.com/users/rnpm/events{/privacy}","received_events_url":"https://api.github.com/users/rnpm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rnpm/rnpm","description":":iphone: React Native Package Manager","fork":false,"url":"https://api.github.com/repos/rnpm/rnpm","forks_url":"https://api.github.com/repos/rnpm/rnpm/forks","keys_url":"https://api.github.com/repos/rnpm/rnpm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rnpm/rnpm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rnpm/rnpm/teams","hooks_url":"https://api.github.com/repos/rnpm/rnpm/hooks","issue_events_url":"https://api.github.com/repos/rnpm/rnpm/issues/events{/number}","events_url":"https://api.github.com/repos/rnpm/rnpm/events","assignees_url":"https://api.github.com/repos/rnpm/rnpm/assignees{/user}","branches_url":"https://api.github.com/repos/rnpm/rnpm/branches{/branch}","tags_url":"https://api.github.com/repos/rnpm/rnpm/tags","blobs_url":"https://api.github.com/repos/rnpm/rnpm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rnpm/rnpm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rnpm/rnpm/git/refs{/sha}","trees_url":"https://api.github.com/repos/rnpm/rnpm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rnpm/rnpm/statuses/{sha}","languages_url":"https://api.github.com/repos/rnpm/rnpm/languages","stargazers_url":"https://api.github.com/repos/rnpm/rnpm/stargazers","contributors_url":"https://api.github.com/repos/rnpm/rnpm/contributors","subscribers_url":"https://api.github.com/repos/rnpm/rnpm/subscribers","subscription_url":"https://api.github.com/repos/rnpm/rnpm/subscription","commits_url":"https://api.github.com/repos/rnpm/rnpm/commits{/sha}","git_commits_url":"https://api.github.com/repos/rnpm/rnpm/git/commits{/sha}","comments_url":"https://api.github.com/repos/rnpm/rnpm/comments{/number}","issue_comment_url":"https://api.github.com/repos/rnpm/rnpm/issues/comments{/number}","contents_url":"https://api.github.com/repos/rnpm/rnpm/contents/{+path}","compare_url":"https://api.github.com/repos/rnpm/rnpm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rnpm/rnpm/merges","archive_url":"https://api.github.com/repos/rnpm/rnpm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rnpm/rnpm/downloads","issues_url":"https://api.github.com/repos/rnpm/rnpm/issues{/number}","pulls_url":"https://api.github.com/repos/rnpm/rnpm/pulls{/number}","milestones_url":"https://api.github.com/repos/rnpm/rnpm/milestones{/number}","notifications_url":"https://api.github.com/repos/rnpm/rnpm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rnpm/rnpm/labels{/name}","releases_url":"https://api.github.com/repos/rnpm/rnpm/releases{/id}","created_at":"2015-11-17T18:23:39Z","updated_at":"2015-12-07T11:56:58Z","pushed_at":"2015-12-06T02:05:17Z","git_url":"git://github.com/rnpm/rnpm.git","ssh_url":"git@github.com:rnpm/rnpm.git","clone_url":"https://github.com/rnpm/rnpm.git","svn_url":"https://github.com/rnpm/rnpm","homepage":"","size":214,"stargazers_count":253,"watchers_count":253,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":253,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rnpm/rnpm/pulls/35"},"html":{"href":"https://github.com/rnpm/rnpm/pull/35"},"issue":{"href":"https://api.github.com/repos/rnpm/rnpm/issues/35"},"comments":{"href":"https://api.github.com/repos/rnpm/rnpm/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/rnpm/rnpm/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/rnpm/rnpm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rnpm/rnpm/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/rnpm/rnpm/statuses/a1928d6122795984744f5750b721fdfea26af0b8"}}}}