jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.54k stars 4.02k forks source link

While passing custom question in cli and launch.json not working in jhipster 8.5.0 #27492

Closed VijayDev98 closed 3 weeks ago

VijayDev98 commented 3 weeks ago

when I'm passing custom prompts commands via cmd or launch.json getting below error :

.... Debugger attached. Debugger attached. INFO! No custom commands found within blueprint: generator-jhipster-sample at xyz\generator-jhipster-sample error: unknown option '--custom-question' Waiting for the debugger to disconnect... Waiting for the debugger to disconnect...

I have added custom-question option in generator.js this.option('custom-question', { desc: 'SSO key enabled', type: Boolean, });

as custom-question is type boolean, with 7.9.4 it's working but with 8.5.0 giving unknown option error.

mshima commented 3 weeks ago

Custom options has changed in v8. Workaround is https://github.com/jhipster/generator-jhipster/issues/27404#issuecomment-2392000325.

mshima commented 3 weeks ago

Duplicate of https://github.com/jhipster/generator-jhipster/issues/27404