{"action":"created","comment":{"url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments/64778473","id":64778473,"diff_hunk":"@@ -14,11 +14,21 @@ import {ArgDescriptor} from 'command-line-args';\n import * as fs from 'fs';\n import * as logging from 'plylog';\n import * as chalk from 'chalk';\n-\n+import * as YeomanEnvironment from 'yeoman-environment';","path":"src/commands/init.ts","position":5,"original_position":5,"commit_id":"40c2ddf10872cf1df7b91bfb4fc8346db4e8c5f6","original_commit_id":"40c2ddf10872cf1df7b91bfb4fc8346db4e8c5f6","user":{"login":"justinfagnani","id":522948,"avatar_url":"https://avatars.githubusercontent.com/u/522948?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfagnani","html_url":"https://github.com/justinfagnani","followers_url":"https://api.github.com/users/justinfagnani/followers","following_url":"https://api.github.com/users/justinfagnani/following{/other_user}","gists_url":"https://api.github.com/users/justinfagnani/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfagnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfagnani/subscriptions","organizations_url":"https://api.github.com/users/justinfagnani/orgs","repos_url":"https://api.github.com/users/justinfagnani/repos","events_url":"https://api.github.com/users/justinfagnani/events{/privacy}","received_events_url":"https://api.github.com/users/justinfagnani/received_events","type":"User","site_admin":false},"body":"we moved some imports into the `run()` method to improve start time of the CLI. Unless there's another reason to import up here, let's keep what we can in `run`.","created_at":"2016-05-26T16:37:09Z","updated_at":"2016-05-26T16:37:09Z","html_url":"https://github.com/Polymer/polymer-cli/pull/195#discussion_r64778473","pull_request_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/195","_links":{"self":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments/64778473"},"html":{"href":"https://github.com/Polymer/polymer-cli/pull/195#discussion_r64778473"},"pull_request":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/195"}}},"pull_request":{"url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/195","id":71110894,"html_url":"https://github.com/Polymer/polymer-cli/pull/195","diff_url":"https://github.com/Polymer/polymer-cli/pull/195.diff","patch_url":"https://github.com/Polymer/polymer-cli/pull/195.patch","issue_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/195","number":195,"state":"open","locked":false,"title":"Tests for InitCommand","user":{"login":"ThatJoeMoore","id":455981,"avatar_url":"https://avatars.githubusercontent.com/u/455981?v=3","gravatar_id":"","url":"https://api.github.com/users/ThatJoeMoore","html_url":"https://github.com/ThatJoeMoore","followers_url":"https://api.github.com/users/ThatJoeMoore/followers","following_url":"https://api.github.com/users/ThatJoeMoore/following{/other_user}","gists_url":"https://api.github.com/users/ThatJoeMoore/gists{/gist_id}","starred_url":"https://api.github.com/users/ThatJoeMoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThatJoeMoore/subscriptions","organizations_url":"https://api.github.com/users/ThatJoeMoore/orgs","repos_url":"https://api.github.com/users/ThatJoeMoore/repos","events_url":"https://api.github.com/users/ThatJoeMoore/events{/privacy}","received_events_url":"https://api.github.com/users/ThatJoeMoore/received_events","type":"User","site_admin":false},"body":"Refactors InitCommand to make it easier to test and implements tests for it.\r\n\r\nThis was requested in #177, and the commented-out lines in the test will be uncommented as part of that PR.","created_at":"2016-05-23T19:57:29Z","updated_at":"2016-05-26T16:37:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ada735c423d6904cb64d8ca1271c0e6a6bb87a51","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/195/commits","review_comments_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/195/comments","review_comment_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/195/comments","statuses_url":"https://api.github.com/repos/Polymer/polymer-cli/statuses/40c2ddf10872cf1df7b91bfb4fc8346db4e8c5f6","head":{"label":"ThatJoeMoore:init-tests","ref":"init-tests","sha":"40c2ddf10872cf1df7b91bfb4fc8346db4e8c5f6","user":{"login":"ThatJoeMoore","id":455981,"avatar_url":"https://avatars.githubusercontent.com/u/455981?v=3","gravatar_id":"","url":"https://api.github.com/users/ThatJoeMoore","html_url":"https://github.com/ThatJoeMoore","followers_url":"https://api.github.com/users/ThatJoeMoore/followers","following_url":"https://api.github.com/users/ThatJoeMoore/following{/other_user}","gists_url":"https://api.github.com/users/ThatJoeMoore/gists{/gist_id}","starred_url":"https://api.github.com/users/ThatJoeMoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThatJoeMoore/subscriptions","organizations_url":"https://api.github.com/users/ThatJoeMoore/orgs","repos_url":"https://api.github.com/users/ThatJoeMoore/repos","events_url":"https://api.github.com/users/ThatJoeMoore/events{/privacy}","received_events_url":"https://api.github.com/users/ThatJoeMoore/received_events","type":"User","site_admin":false},"repo":{"id":59245228,"name":"polymer-cli","full_name":"ThatJoeMoore/polymer-cli","owner":{"login":"ThatJoeMoore","id":455981,"avatar_url":"https://avatars.githubusercontent.com/u/455981?v=3","gravatar_id":"","url":"https://api.github.com/users/ThatJoeMoore","html_url":"https://github.com/ThatJoeMoore","followers_url":"https://api.github.com/users/ThatJoeMoore/followers","following_url":"https://api.github.com/users/ThatJoeMoore/following{/other_user}","gists_url":"https://api.github.com/users/ThatJoeMoore/gists{/gist_id}","starred_url":"https://api.github.com/users/ThatJoeMoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThatJoeMoore/subscriptions","organizations_url":"https://api.github.com/users/ThatJoeMoore/orgs","repos_url":"https://api.github.com/users/ThatJoeMoore/repos","events_url":"https://api.github.com/users/ThatJoeMoore/events{/privacy}","received_events_url":"https://api.github.com/users/ThatJoeMoore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ThatJoeMoore/polymer-cli","description":"A command-line tool for Polymer projects","fork":true,"url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli","forks_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/forks","keys_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/teams","hooks_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/hooks","issue_events_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/issues/events{/number}","events_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/events","assignees_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/assignees{/user}","branches_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/branches{/branch}","tags_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/tags","blobs_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/languages","stargazers_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/stargazers","contributors_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/contributors","subscribers_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/subscribers","subscription_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/subscription","commits_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/contents/{+path}","compare_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/merges","archive_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/downloads","issues_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/issues{/number}","pulls_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/labels{/name}","releases_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/releases{/id}","deployments_url":"https://api.github.com/repos/ThatJoeMoore/polymer-cli/deployments","created_at":"2016-05-19T21:51:40Z","updated_at":"2016-05-19T21:51:41Z","pushed_at":"2016-05-24T17:16:48Z","git_url":"git://github.com/ThatJoeMoore/polymer-cli.git","ssh_url":"git@github.com:ThatJoeMoore/polymer-cli.git","clone_url":"https://github.com/ThatJoeMoore/polymer-cli.git","svn_url":"https://github.com/ThatJoeMoore/polymer-cli","homepage":null,"size":233,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"Polymer:master","ref":"master","sha":"a1896ae1c9607889f9b5bbb7ae041b352431bf1c","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":51951003,"name":"polymer-cli","full_name":"Polymer/polymer-cli","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/polymer-cli","description":"A command-line tool for Polymer projects","fork":false,"url":"https://api.github.com/repos/Polymer/polymer-cli","forks_url":"https://api.github.com/repos/Polymer/polymer-cli/forks","keys_url":"https://api.github.com/repos/Polymer/polymer-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/polymer-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/polymer-cli/teams","hooks_url":"https://api.github.com/repos/Polymer/polymer-cli/hooks","issue_events_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/polymer-cli/events","assignees_url":"https://api.github.com/repos/Polymer/polymer-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/polymer-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/polymer-cli/tags","blobs_url":"https://api.github.com/repos/Polymer/polymer-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/polymer-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/polymer-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/polymer-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/polymer-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/polymer-cli/languages","stargazers_url":"https://api.github.com/repos/Polymer/polymer-cli/stargazers","contributors_url":"https://api.github.com/repos/Polymer/polymer-cli/contributors","subscribers_url":"https://api.github.com/repos/Polymer/polymer-cli/subscribers","subscription_url":"https://api.github.com/repos/Polymer/polymer-cli/subscription","commits_url":"https://api.github.com/repos/Polymer/polymer-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/polymer-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/polymer-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/polymer-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/polymer-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/polymer-cli/merges","archive_url":"https://api.github.com/repos/Polymer/polymer-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/polymer-cli/downloads","issues_url":"https://api.github.com/repos/Polymer/polymer-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/polymer-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/polymer-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/polymer-cli/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/polymer-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Polymer/polymer-cli/deployments","created_at":"2016-02-17T19:57:15Z","updated_at":"2016-05-26T16:00:28Z","pushed_at":"2016-05-26T16:27:25Z","git_url":"git://github.com/Polymer/polymer-cli.git","ssh_url":"git@github.com:Polymer/polymer-cli.git","clone_url":"https://github.com/Polymer/polymer-cli.git","svn_url":"https://github.com/Polymer/polymer-cli","homepage":null,"size":301,"stargazers_count":45,"watchers_count":45,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":38,"forks":15,"open_issues":38,"watchers":45,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/195"},"html":{"href":"https://github.com/Polymer/polymer-cli/pull/195"},"issue":{"href":"https://api.github.com/repos/Polymer/polymer-cli/issues/195"},"comments":{"href":"https://api.github.com/repos/Polymer/polymer-cli/issues/195/comments"},"review_comments":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/195/comments"},"review_comment":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/195/commits"},"statuses":{"href":"https://api.github.com/repos/Polymer/polymer-cli/statuses/40c2ddf10872cf1df7b91bfb4fc8346db4e8c5f6"}}}}
{"actor":{"display_login":"justinfagnani"}}