Reputation: 57
Dear JHispter community,
is there a way to add options after jhipster spring-controller and jhipster spring-service to automatically generate the code. for instance, jhispter spring-service is asking me: do you want to use an interface for your service? how can i pass this answer directly on the command line, for insatnce
jhipster spring-service MYService -interface=yes
Thanks for your expertise. Francois
Upvotes: 0
Views: 389
Reputation: 6352
It is not currently possible to pass the prompt answer via a command line for the spring-service
or spring-controller
subgenerators. It would surely be accepted in a pull request if anyone were to add it.
You can see the available command line options by using the --help
flag
jhipster spring-service --help
...
Options:
-h, --help # Print the generator's options and usage
--skip-cache # Do not remember prompt answers Default: false
--skip-install # Do not automatically install dependencies Default: false
...
Upvotes: 2