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

Add every choice to options configuration and validate config. #24318

Open
1 task
mshima opened this issue Nov 21, 2023 · 2 comments
Open
1 task

Add every choice to options configuration and validate config. #24318

mshima opened this issue Nov 21, 2023 · 2 comments

Comments

@mshima
Copy link
Member

mshima commented Nov 21, 2023

Overview of the feature request

v8 supports configuration/cli options choices:

choices: [
{ value: ANGULAR, name: 'Angular' },
{ value: REACT, name: 'React' },
{ value: VUE, name: 'Vue' },
{ value: CLIENT_FRAMEWORK_NO, name: 'No client' },
],

jhipster --help
Usage: jhipster [options] [command]

...
  --client-framework <value>               Provide client framework for the application (choices: "angular", "react", "vue", "no")
...
jhipster --client-framework foo
error: option '--client-framework <value>' argument 'foo' is invalid. Allowed choices are angular, react, vue, no.

Missing tasks:

  • add choices to every config (cacheProvider, db, websocket, messageBroker, ...) at non-workspaces generators.
  • validate the configuration value at configuring priority.
Motivation for or Use Case

Be more verbose on configuration errors.

Related issues or PR

#24312

  • Checking this box is mandatory (this is just to show you read everything)
Copy link
Contributor

This issue is stale because it has been open for too long without any activity.
Due to the moving nature of jhipster generated application, bugs can become invalid.
If this issue still applies please comment otherwise it will be closed in 7 days

@mshima
Copy link
Member Author

mshima commented May 20, 2024

Still relevant.

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

2 participants