{"action":"created","comment":{"url":"https://api.github.com/repos/apache/cordova-cli/pulls/comments/23103480","id":23103480,"diff_hunk":"@@ -220,6 +222,11 @@ function cli(inputArgs) {\n         }\n         opts.options = downstreamArgs.concat(unparsedArgs);\n \n+        if (cmd == 'run' && args.list && cordova.raw.targets) {\n+            cordova.raw.targets(opts).done();","path":"src/cli.js","position":28,"original_position":28,"commit_id":"547de073b44f27cbc348add18d6e07788ab97622","original_commit_id":"547de073b44f27cbc348add18d6e07788ab97622","user":{"login":"jsoref","id":2119212,"avatar_url":"https://avatars.githubusercontent.com/u/2119212?v=3","gravatar_id":"","url":"https://api.github.com/users/jsoref","html_url":"https://github.com/jsoref","followers_url":"https://api.github.com/users/jsoref/followers","following_url":"https://api.github.com/users/jsoref/following{/other_user}","gists_url":"https://api.github.com/users/jsoref/gists{/gist_id}","starred_url":"https://api.github.com/users/jsoref/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsoref/subscriptions","organizations_url":"https://api.github.com/users/jsoref/orgs","repos_url":"https://api.github.com/users/jsoref/repos","events_url":"https://api.github.com/users/jsoref/events{/privacy}","received_events_url":"https://api.github.com/users/jsoref/received_events","type":"User","site_admin":false},"body":"Code further down uses .call(null, ...), I'm not quite sure why, but unless there's a good reason not to follow that convention, we should probably follow it.\r\n\r\n-- Please ask someone.","created_at":"2015-01-16T19:33:06Z","updated_at":"2015-01-16T19:33:06Z","html_url":"https://github.com/apache/cordova-cli/pull/205#discussion_r23103480","pull_request_url":"https://api.github.com/repos/apache/cordova-cli/pulls/205","_links":{"self":{"href":"https://api.github.com/repos/apache/cordova-cli/pulls/comments/23103480"},"html":{"href":"https://github.com/apache/cordova-cli/pull/205#discussion_r23103480"},"pull_request":{"href":"https://api.github.com/repos/apache/cordova-cli/pulls/205"}}},"pull_request":{"url":"https://api.github.com/repos/apache/cordova-cli/pulls/205","id":27178749,"html_url":"https://github.com/apache/cordova-cli/pull/205","diff_url":"https://github.com/apache/cordova-cli/pull/205.diff","patch_url":"https://github.com/apache/cordova-cli/pull/205.patch","issue_url":"https://api.github.com/repos/apache/cordova-cli/issues/205","number":205,"state":"open","locked":false,"title":"CB-8168 --list support for CLI","user":{"login":"muratsu","id":1308560,"avatar_url":"https://avatars.githubusercontent.com/u/1308560?v=3","gravatar_id":"","url":"https://api.github.com/users/muratsu","html_url":"https://github.com/muratsu","followers_url":"https://api.github.com/users/muratsu/followers","following_url":"https://api.github.com/users/muratsu/following{/other_user}","gists_url":"https://api.github.com/users/muratsu/gists{/gist_id}","starred_url":"https://api.github.com/users/muratsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muratsu/subscriptions","organizations_url":"https://api.github.com/users/muratsu/orgs","repos_url":"https://api.github.com/users/muratsu/repos","events_url":"https://api.github.com/users/muratsu/events{/privacy}","received_events_url":"https://api.github.com/users/muratsu/received_events","type":"User","site_admin":false},"body":"Add list support back after the discussion on the dev mail list","created_at":"2015-01-12T07:49:47Z","updated_at":"2015-01-16T19:33:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"415dc4c2d7d1fdfc821b24a2a8c6a64e620eb34d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/cordova-cli/pulls/205/commits","review_comments_url":"https://api.github.com/repos/apache/cordova-cli/pulls/205/comments","review_comment_url":"https://api.github.com/repos/apache/cordova-cli/pulls/comments/{number}","comments_url":"https://api.github.com/repos/apache/cordova-cli/issues/205/comments","statuses_url":"https://api.github.com/repos/apache/cordova-cli/statuses/547de073b44f27cbc348add18d6e07788ab97622","head":{"label":"MSOpenTech:CB-8168","ref":"CB-8168","sha":"547de073b44f27cbc348add18d6e07788ab97622","user":{"login":"MSOpenTech","id":1638184,"avatar_url":"https://avatars.githubusercontent.com/u/1638184?v=3","gravatar_id":"","url":"https://api.github.com/users/MSOpenTech","html_url":"https://github.com/MSOpenTech","followers_url":"https://api.github.com/users/MSOpenTech/followers","following_url":"https://api.github.com/users/MSOpenTech/following{/other_user}","gists_url":"https://api.github.com/users/MSOpenTech/gists{/gist_id}","starred_url":"https://api.github.com/users/MSOpenTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSOpenTech/subscriptions","organizations_url":"https://api.github.com/users/MSOpenTech/orgs","repos_url":"https://api.github.com/users/MSOpenTech/repos","events_url":"https://api.github.com/users/MSOpenTech/events{/privacy}","received_events_url":"https://api.github.com/users/MSOpenTech/received_events","type":"Organization","site_admin":false},"repo":{"id":18086885,"name":"cordova-cli","full_name":"MSOpenTech/cordova-cli","owner":{"login":"MSOpenTech","id":1638184,"avatar_url":"https://avatars.githubusercontent.com/u/1638184?v=3","gravatar_id":"","url":"https://api.github.com/users/MSOpenTech","html_url":"https://github.com/MSOpenTech","followers_url":"https://api.github.com/users/MSOpenTech/followers","following_url":"https://api.github.com/users/MSOpenTech/following{/other_user}","gists_url":"https://api.github.com/users/MSOpenTech/gists{/gist_id}","starred_url":"https://api.github.com/users/MSOpenTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSOpenTech/subscriptions","organizations_url":"https://api.github.com/users/MSOpenTech/orgs","repos_url":"https://api.github.com/users/MSOpenTech/repos","events_url":"https://api.github.com/users/MSOpenTech/events{/privacy}","received_events_url":"https://api.github.com/users/MSOpenTech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MSOpenTech/cordova-cli","description":"Mirror of Apache Cordova CLI","fork":true,"url":"https://api.github.com/repos/MSOpenTech/cordova-cli","forks_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/forks","keys_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/teams","hooks_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/hooks","issue_events_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/issues/events{/number}","events_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/events","assignees_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/assignees{/user}","branches_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/branches{/branch}","tags_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/tags","blobs_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/languages","stargazers_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/stargazers","contributors_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/contributors","subscribers_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/subscribers","subscription_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/subscription","commits_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/issues/comments/{number}","contents_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/contents/{+path}","compare_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/merges","archive_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/downloads","issues_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/issues{/number}","pulls_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/labels{/name}","releases_url":"https://api.github.com/repos/MSOpenTech/cordova-cli/releases{/id}","created_at":"2014-03-25T02:51:54Z","updated_at":"2014-09-23T09:30:31Z","pushed_at":"2015-01-16T18:50:55Z","git_url":"git://github.com/MSOpenTech/cordova-cli.git","ssh_url":"git@github.com:MSOpenTech/cordova-cli.git","clone_url":"https://github.com/MSOpenTech/cordova-cli.git","svn_url":"https://github.com/MSOpenTech/cordova-cli","homepage":null,"size":39704,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"17c0fb5db8583a4cb964787982e92a7a84f11a97","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":7126418,"name":"cordova-cli","full_name":"apache/cordova-cli","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/cordova-cli","description":"Mirror of Apache Cordova CLI","fork":false,"url":"https://api.github.com/repos/apache/cordova-cli","forks_url":"https://api.github.com/repos/apache/cordova-cli/forks","keys_url":"https://api.github.com/repos/apache/cordova-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/cordova-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/cordova-cli/teams","hooks_url":"https://api.github.com/repos/apache/cordova-cli/hooks","issue_events_url":"https://api.github.com/repos/apache/cordova-cli/issues/events{/number}","events_url":"https://api.github.com/repos/apache/cordova-cli/events","assignees_url":"https://api.github.com/repos/apache/cordova-cli/assignees{/user}","branches_url":"https://api.github.com/repos/apache/cordova-cli/branches{/branch}","tags_url":"https://api.github.com/repos/apache/cordova-cli/tags","blobs_url":"https://api.github.com/repos/apache/cordova-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/cordova-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/cordova-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/cordova-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/cordova-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/cordova-cli/languages","stargazers_url":"https://api.github.com/repos/apache/cordova-cli/stargazers","contributors_url":"https://api.github.com/repos/apache/cordova-cli/contributors","subscribers_url":"https://api.github.com/repos/apache/cordova-cli/subscribers","subscription_url":"https://api.github.com/repos/apache/cordova-cli/subscription","commits_url":"https://api.github.com/repos/apache/cordova-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/cordova-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/cordova-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/cordova-cli/issues/comments/{number}","contents_url":"https://api.github.com/repos/apache/cordova-cli/contents/{+path}","compare_url":"https://api.github.com/repos/apache/cordova-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/cordova-cli/merges","archive_url":"https://api.github.com/repos/apache/cordova-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/cordova-cli/downloads","issues_url":"https://api.github.com/repos/apache/cordova-cli/issues{/number}","pulls_url":"https://api.github.com/repos/apache/cordova-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/cordova-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/cordova-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/cordova-cli/labels{/name}","releases_url":"https://api.github.com/repos/apache/cordova-cli/releases{/id}","created_at":"2012-12-12T08:00:28Z","updated_at":"2015-01-16T14:10:20Z","pushed_at":"2015-01-16T01:39:53Z","git_url":"git://github.com/apache/cordova-cli.git","ssh_url":"git@github.com:apache/cordova-cli.git","clone_url":"https://github.com/apache/cordova-cli.git","svn_url":"https://github.com/apache/cordova-cli","homepage":null,"size":45738,"stargazers_count":288,"watchers_count":288,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":174,"mirror_url":"git://git.apache.org/cordova-cli.git","open_issues_count":3,"forks":174,"open_issues":3,"watchers":288,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/cordova-cli/pulls/205"},"html":{"href":"https://github.com/apache/cordova-cli/pull/205"},"issue":{"href":"https://api.github.com/repos/apache/cordova-cli/issues/205"},"comments":{"href":"https://api.github.com/repos/apache/cordova-cli/issues/205/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/cordova-cli/pulls/205/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/cordova-cli/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/apache/cordova-cli/pulls/205/commits"},"statuses":{"href":"https://api.github.com/repos/apache/cordova-cli/statuses/547de073b44f27cbc348add18d6e07788ab97622"}}}}