Closed RawSanj closed 7 years ago
It is great idea, i will implement this. thanks for contribution for project.
(temporary)
But to executecli -spring g model User name:String
It is necessary before that you acess of directory the project.
cd myproject
@RawSanj
Nope. I didn't get any error.
I was under C:\TempStuff
, opened cmd prompt and ran cli -spring g new my-project
command.
It created the project under C:\TempStuff\my-project
and under C:\TempStuff\my-project
there was the src/main/java
.
After that I ran cli -spring g model User mail:String password:String
without cd my-project
and I was able to create User model without any errors.
With a scaffolder.info
file you can detect project directory and put the files in accurate folder.
When creating a Project create a file for saving project info which can be used later for other operations.
When I run
cli -spring g model User mail:String password:String
after creating a Project, thesrc/main/....Model.class
is generated outside the Project directory.Solution:
scaffolder.info
file during project creation and save project properties in it (like project folder directory)