Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to register options for the new command w/ non-default blueprints #6948

Open
pittst3r opened this issue Apr 7, 2017 · 4 comments
Open

Comments

@pittst3r
Copy link

pittst3r commented Apr 7, 2017

When I do:

$ ember new hello-wc --web-component -b @glimmer/blueprint

I get the warning:

The option '--web-component' is not registered with the new command. Run `ember new --help` for a list of supported options.

But the option still gets passed into the blueprint and it still works.

Basically the following is not a thing you can do with the new command:

availableOptions: [
  {
    name: 'web-component',
    type: Boolean
  }
]

cc @tomdale


Output from ember version --verbose && npm --version:

ember-cli: 2.13.0-beta.3
http_parser: 2.7.0
node: 6.9.2
v8: 5.1.281.88
uv: 1.9.1
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 57.1
modules: 48
openssl: 1.0.2j
os: darwin x64
3.10.9
@rwjblue
Copy link
Member

rwjblue commented Apr 8, 2017

Thanks for reporting!

@tomdale
Copy link
Contributor

tomdale commented Apr 9, 2017

I suspect there are a number of options we may eventually want to expose when creating a new app, such as JavaScript or TypeScript.

Has there been any discussion about an interactive prompt addons could offer to walk users through the choices? At a certain point a few targeted questions for frequent options is a better user experience than a big list of options people have to dig through.

@kellyselden
Copy link
Member

Has there been any discussion about an interactive prompt addons could offer to walk users through the choices? At a certain point a few targeted questions for frequent options is a better user experience than a big list of options people have to dig through.

cc @seawatts

@Turbo87
Copy link
Member

Turbo87 commented Apr 11, 2017

Has there been any discussion about an interactive prompt addons could offer to walk users through the choices?

I might be wrong, but I think this should be possible already using something like this.ui.prompt() in the e.g. beforeInstall hook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants