{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5232","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5232/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5232/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5232/events","html_url":"https://github.com/ember-cli/ember-cli/pull/5232","id":122665967,"number":5232,"title":"[BUGFIX] Update generate resource documentation","user":{"login":"johnotander","id":1424573,"avatar_url":"https://avatars.githubusercontent.com/u/1424573?v=3","gravatar_id":"","url":"https://api.github.com/users/johnotander","html_url":"https://github.com/johnotander","followers_url":"https://api.github.com/users/johnotander/followers","following_url":"https://api.github.com/users/johnotander/following{/other_user}","gists_url":"https://api.github.com/users/johnotander/gists{/gist_id}","starred_url":"https://api.github.com/users/johnotander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnotander/subscriptions","organizations_url":"https://api.github.com/users/johnotander/orgs","repos_url":"https://api.github.com/users/johnotander/repos","events_url":"https://api.github.com/users/johnotander/events{/privacy}","received_events_url":"https://api.github.com/users/johnotander/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-17T05:48:12Z","updated_at":"2015-12-17T06:48:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/5232","html_url":"https://github.com/ember-cli/ember-cli/pull/5232","diff_url":"https://github.com/ember-cli/ember-cli/pull/5232.diff","patch_url":"https://github.com/ember-cli/ember-cli/pull/5232.patch"},"body":"Currently the `$ ember generate resource -h` docs give insufficient information.\r\nJudging by the cli's help docs, it specifies that only a model\r\nand route are generated.\r\n\r\nI've updated the cli help to document the current behavior. However,\r\nif the behavior should be changed to what the help docs state,\r\nlet me know.\r\n\r\n```\r\n  $ ember g resource -h\r\n    version: 1.13.13\r\n    Requested ember-cli commands:\r\n\r\n    ember generate <blueprint> <options...>\r\n      Generates new code from blueprints.\r\n      aliases: g\r\n      --dry-run (Boolean) (Default: false)\r\n        aliases: -d\r\n      --verbose (Boolean) (Default: false)\r\n        aliases: -v\r\n      --pod (Boolean) (Default: false)\r\n        aliases: -p\r\n      --classic (Boolean) (Default: false)\r\n        aliases: -c\r\n      --dummy (Boolean) (Default: false)\r\n        aliases: -dum, -id\r\n      --in-repo-addon (String) (Default: null)\r\n        aliases: -in-repo <value>, -ir <value>\r\n\r\n          resource <name>\r\n            Generates a model and route.\r\n```\r\n\r\nHowever, a template is also generated\r\n\r\n```\r\n  $ ember g resource foo\r\n    version: 1.13.13\r\n    installing model\r\n      create app/models/foo.js\r\n    installing model-test\r\n      create tests/unit/models/foo-test.js\r\n    installing route\r\n      create app/routes/foo.js\r\n      create app/templates/foo.hbs\r\n    updating router\r\n      add route foo\r\n    installing route-test\r\n      create tests/unit/routes/foo-test.js\r\n```\r\n\r\nSo, the template is now added to the cli docs\r\n\r\n```\r\n  $ ember g resource -h\r\n\r\n    Missing symlinked npm packages:\r\n    Package: ember-cli\r\n      * Specified: 1.13.13\r\n      * Symlinked: 2.2.0-beta.1\r\n\r\n    version: 2.2.0-beta.1-update-cli-help-docs-e803ac7fa6\r\n    Requested ember-cli commands:\r\n\r\n    ember generate <blueprint> <options...>\r\n      Generates new code from blueprints.\r\n      aliases: g\r\n      --dry-run (Boolean) (Default: false)\r\n        aliases: -d\r\n      --verbose (Boolean) (Default: false)\r\n        aliases: -v\r\n      --pod (Boolean) (Default: false)\r\n        aliases: -p\r\n      --classic (Boolean) (Default: false)\r\n        aliases: -c\r\n      --dummy (Boolean) (Default: false)\r\n        aliases: -dum, -id\r\n      --in-repo-addon (String) (Default: null)\r\n        aliases: -in-repo <value>, -ir <value>\r\n\r\n          resource <name>\r\n            Generates a model, template, and route.\r\n```\r\n\r\n***\r\n\r\nRelated #4952"},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/165358113","html_url":"https://github.com/ember-cli/ember-cli/pull/5232#issuecomment-165358113","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5232","id":165358113,"user":{"login":"kellyselden","id":602423,"avatar_url":"https://avatars.githubusercontent.com/u/602423?v=3","gravatar_id":"","url":"https://api.github.com/users/kellyselden","html_url":"https://github.com/kellyselden","followers_url":"https://api.github.com/users/kellyselden/followers","following_url":"https://api.github.com/users/kellyselden/following{/other_user}","gists_url":"https://api.github.com/users/kellyselden/gists{/gist_id}","starred_url":"https://api.github.com/users/kellyselden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellyselden/subscriptions","organizations_url":"https://api.github.com/users/kellyselden/orgs","repos_url":"https://api.github.com/users/kellyselden/repos","events_url":"https://api.github.com/users/kellyselden/events{/privacy}","received_events_url":"https://api.github.com/users/kellyselden/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T06:48:41Z","updated_at":"2015-12-17T06:48:41Z","body":"Thanks!"}}