{"action":"created","comment":{"url":"https://api.github.com/repos/strongloop/generator-loopback/pulls/comments/83377133","pull_request_review_id":4224892,"id":83377133,"diff_hunk":"@@ -45,6 +46,26 @@ describe('loopback generator help', function() {\n     process.env.SLC_COMMAND = undefined;\n   });\n \n+  describe('prints right help message for each generator', function() {\n+    var cmdNames = ['acl', 'app', 'boot-script', 'datasource', 'export-api-def',\n+    'middleware', 'model', 'property', 'relation', 'remote-method', 'swagger'];\n+\n+    cmdNames.forEach(function(name) {\n+      it('prints right help message for generator ' + name, function() {\n+        process.env.SLC_COMMAND = 'slc loopback --help';","path":"test/help.test.js","position":36,"original_position":36,"commit_id":"152a141f286aab74f3b0988ffe87152fc6c4a098","original_commit_id":"152a141f286aab74f3b0988ffe87152fc6c4a098","user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"body":"See my older comment, I think this should use only `slc` as the command:\r\n\r\n```js\r\nprocess.env.SLC_COMMAND = 'slc';\r\n```\r\n\r\nUnless I am missing something?","created_at":"2016-10-14T08:23:34Z","updated_at":"2016-10-14T08:25:41Z","html_url":"https://github.com/strongloop/generator-loopback/pull/229#discussion_r83377133","pull_request_url":"https://api.github.com/repos/strongloop/generator-loopback/pulls/229","_links":{"self":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/comments/83377133"},"html":{"href":"https://github.com/strongloop/generator-loopback/pull/229#discussion_r83377133"},"pull_request":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/229"}}},"pull_request":{"url":"https://api.github.com/repos/strongloop/generator-loopback/pulls/229","id":86565268,"html_url":"https://github.com/strongloop/generator-loopback/pull/229","diff_url":"https://github.com/strongloop/generator-loopback/pull/229.diff","patch_url":"https://github.com/strongloop/generator-loopback/pull/229.patch","issue_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/229","number":229,"state":"open","locked":false,"title":"Globalize/help files ","user":{"login":"jannyHou","id":12554153,"avatar_url":"https://avatars.githubusercontent.com/u/12554153?v=3","gravatar_id":"","url":"https://api.github.com/users/jannyHou","html_url":"https://github.com/jannyHou","followers_url":"https://api.github.com/users/jannyHou/followers","following_url":"https://api.github.com/users/jannyHou/following{/other_user}","gists_url":"https://api.github.com/users/jannyHou/gists{/gist_id}","starred_url":"https://api.github.com/users/jannyHou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jannyHou/subscriptions","organizations_url":"https://api.github.com/users/jannyHou/orgs","repos_url":"https://api.github.com/users/jannyHou/repos","events_url":"https://api.github.com/users/jannyHou/events{/privacy}","received_events_url":"https://api.github.com/users/jannyHou/received_events","type":"User","site_admin":false},"body":"connect to strongloop/generator-loopback#227\r\nChanges in this pr:\r\n\r\n- Create a new file `lib/help.js` to define our own function(keep the old name `customHelp`) to generate helpText. Now mostly functions are copied from [`yeoman: lib/actions/help.js`](https://github.com/yeoman/generator/blob/master/lib/actions/help.js) to keep it with the same file structure we have before:\r\n\r\n  ```\r\n    Usage:\r\n    Options:\r\n    Arguments:\r\n    Other info from usage file\r\n  ```\r\n\r\n-  Move usage files into `intl/en` and name them as 'loopback_generatorName_usage.txt'\r\n\r\nNow `customHelp()` will append text from 'intl/en/.txt' instead of file usage in each generator folder.","created_at":"2016-09-23T19:09:09Z","updated_at":"2016-10-14T08:25:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"097f541175b7f71e56b772fd86512ea9055953c0","assignee":{"login":"jannyHou","id":12554153,"avatar_url":"https://avatars.githubusercontent.com/u/12554153?v=3","gravatar_id":"","url":"https://api.github.com/users/jannyHou","html_url":"https://github.com/jannyHou","followers_url":"https://api.github.com/users/jannyHou/followers","following_url":"https://api.github.com/users/jannyHou/following{/other_user}","gists_url":"https://api.github.com/users/jannyHou/gists{/gist_id}","starred_url":"https://api.github.com/users/jannyHou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jannyHou/subscriptions","organizations_url":"https://api.github.com/users/jannyHou/orgs","repos_url":"https://api.github.com/users/jannyHou/repos","events_url":"https://api.github.com/users/jannyHou/events{/privacy}","received_events_url":"https://api.github.com/users/jannyHou/received_events","type":"User","site_admin":false},"assignees":[{"login":"jannyHou","id":12554153,"avatar_url":"https://avatars.githubusercontent.com/u/12554153?v=3","gravatar_id":"","url":"https://api.github.com/users/jannyHou","html_url":"https://github.com/jannyHou","followers_url":"https://api.github.com/users/jannyHou/followers","following_url":"https://api.github.com/users/jannyHou/following{/other_user}","gists_url":"https://api.github.com/users/jannyHou/gists{/gist_id}","starred_url":"https://api.github.com/users/jannyHou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jannyHou/subscriptions","organizations_url":"https://api.github.com/users/jannyHou/orgs","repos_url":"https://api.github.com/users/jannyHou/repos","events_url":"https://api.github.com/users/jannyHou/events{/privacy}","received_events_url":"https://api.github.com/users/jannyHou/received_events","type":"User","site_admin":false},{"login":"0candy","id":14314570,"avatar_url":"https://avatars.githubusercontent.com/u/14314570?v=3","gravatar_id":"","url":"https://api.github.com/users/0candy","html_url":"https://github.com/0candy","followers_url":"https://api.github.com/users/0candy/followers","following_url":"https://api.github.com/users/0candy/following{/other_user}","gists_url":"https://api.github.com/users/0candy/gists{/gist_id}","starred_url":"https://api.github.com/users/0candy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0candy/subscriptions","organizations_url":"https://api.github.com/users/0candy/orgs","repos_url":"https://api.github.com/users/0candy/repos","events_url":"https://api.github.com/users/0candy/events{/privacy}","received_events_url":"https://api.github.com/users/0candy/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/strongloop/generator-loopback/pulls/229/commits","review_comments_url":"https://api.github.com/repos/strongloop/generator-loopback/pulls/229/comments","review_comment_url":"https://api.github.com/repos/strongloop/generator-loopback/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/229/comments","statuses_url":"https://api.github.com/repos/strongloop/generator-loopback/statuses/152a141f286aab74f3b0988ffe87152fc6c4a098","head":{"label":"strongloop:globalize/help-files","ref":"globalize/help-files","sha":"152a141f286aab74f3b0988ffe87152fc6c4a098","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":19692503,"name":"generator-loopback","full_name":"strongloop/generator-loopback","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/generator-loopback","description":"Yeoman generator that scaffolds out a LoopBack application","fork":false,"url":"https://api.github.com/repos/strongloop/generator-loopback","forks_url":"https://api.github.com/repos/strongloop/generator-loopback/forks","keys_url":"https://api.github.com/repos/strongloop/generator-loopback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/generator-loopback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/generator-loopback/teams","hooks_url":"https://api.github.com/repos/strongloop/generator-loopback/hooks","issue_events_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/generator-loopback/events","assignees_url":"https://api.github.com/repos/strongloop/generator-loopback/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/generator-loopback/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/generator-loopback/tags","blobs_url":"https://api.github.com/repos/strongloop/generator-loopback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/generator-loopback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/generator-loopback/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/generator-loopback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/generator-loopback/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/generator-loopback/languages","stargazers_url":"https://api.github.com/repos/strongloop/generator-loopback/stargazers","contributors_url":"https://api.github.com/repos/strongloop/generator-loopback/contributors","subscribers_url":"https://api.github.com/repos/strongloop/generator-loopback/subscribers","subscription_url":"https://api.github.com/repos/strongloop/generator-loopback/subscription","commits_url":"https://api.github.com/repos/strongloop/generator-loopback/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/generator-loopback/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/generator-loopback/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/generator-loopback/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/generator-loopback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/generator-loopback/merges","archive_url":"https://api.github.com/repos/strongloop/generator-loopback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/generator-loopback/downloads","issues_url":"https://api.github.com/repos/strongloop/generator-loopback/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/generator-loopback/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/generator-loopback/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/generator-loopback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/generator-loopback/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/generator-loopback/releases{/id}","deployments_url":"https://api.github.com/repos/strongloop/generator-loopback/deployments","created_at":"2014-05-12T09:15:28Z","updated_at":"2016-10-13T04:08:00Z","pushed_at":"2016-10-14T01:47:30Z","git_url":"git://github.com/strongloop/generator-loopback.git","ssh_url":"git@github.com:strongloop/generator-loopback.git","clone_url":"https://github.com/strongloop/generator-loopback.git","svn_url":"https://github.com/strongloop/generator-loopback","homepage":"http://loopback.io","size":1618,"stargazers_count":95,"watchers_count":95,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":36,"forks":38,"open_issues":36,"watchers":95,"default_branch":"master"}},"base":{"label":"strongloop:master","ref":"master","sha":"0c6b9c333d16f9ddc349188d93ec94b578284013","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":19692503,"name":"generator-loopback","full_name":"strongloop/generator-loopback","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/generator-loopback","description":"Yeoman generator that scaffolds out a LoopBack application","fork":false,"url":"https://api.github.com/repos/strongloop/generator-loopback","forks_url":"https://api.github.com/repos/strongloop/generator-loopback/forks","keys_url":"https://api.github.com/repos/strongloop/generator-loopback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/generator-loopback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/generator-loopback/teams","hooks_url":"https://api.github.com/repos/strongloop/generator-loopback/hooks","issue_events_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/generator-loopback/events","assignees_url":"https://api.github.com/repos/strongloop/generator-loopback/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/generator-loopback/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/generator-loopback/tags","blobs_url":"https://api.github.com/repos/strongloop/generator-loopback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/generator-loopback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/generator-loopback/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/generator-loopback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/generator-loopback/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/generator-loopback/languages","stargazers_url":"https://api.github.com/repos/strongloop/generator-loopback/stargazers","contributors_url":"https://api.github.com/repos/strongloop/generator-loopback/contributors","subscribers_url":"https://api.github.com/repos/strongloop/generator-loopback/subscribers","subscription_url":"https://api.github.com/repos/strongloop/generator-loopback/subscription","commits_url":"https://api.github.com/repos/strongloop/generator-loopback/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/generator-loopback/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/generator-loopback/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/generator-loopback/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/generator-loopback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/generator-loopback/merges","archive_url":"https://api.github.com/repos/strongloop/generator-loopback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/generator-loopback/downloads","issues_url":"https://api.github.com/repos/strongloop/generator-loopback/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/generator-loopback/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/generator-loopback/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/generator-loopback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/generator-loopback/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/generator-loopback/releases{/id}","deployments_url":"https://api.github.com/repos/strongloop/generator-loopback/deployments","created_at":"2014-05-12T09:15:28Z","updated_at":"2016-10-13T04:08:00Z","pushed_at":"2016-10-14T01:47:30Z","git_url":"git://github.com/strongloop/generator-loopback.git","ssh_url":"git@github.com:strongloop/generator-loopback.git","clone_url":"https://github.com/strongloop/generator-loopback.git","svn_url":"https://github.com/strongloop/generator-loopback","homepage":"http://loopback.io","size":1618,"stargazers_count":95,"watchers_count":95,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":36,"forks":38,"open_issues":36,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/229"},"html":{"href":"https://github.com/strongloop/generator-loopback/pull/229"},"issue":{"href":"https://api.github.com/repos/strongloop/generator-loopback/issues/229"},"comments":{"href":"https://api.github.com/repos/strongloop/generator-loopback/issues/229/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/229/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/229/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/generator-loopback/statuses/152a141f286aab74f3b0988ffe87152fc6c4a098"}}}}
{"actor":{"display_login":"bajtos"}}