[X] Manually setting the groupId and artifactId
[X] Automatically setting the groupId and artifactId from the pom
[X] Creating the controller, service, model, and repository directories
[X] Creating the model, service, and repository classes with basic template given the name
[X] Creating the model with SQL attributes from the .sql file
[X] Creating the model with SQL attributes by connecting to the database (TODO make it dynamic)
-
-a
: Parses thepom.xml
file and sets thegroupId
andartifactId
from it.spb-utils-rust -a
-
-d
: Creates the necessary directories for the project structure based on thegroupId
andartifactId
from the configuration file.spb-utils-rust -d
-
-s <groupId> <artifactId>
: Manually sets thegroupId
andartifactId
in the configuration file.spb-utils-rust -s com.example myartifact
-
-f <name> [-t <sql_file>]
: Creates model files with SQL attributes. If no SQL file is specified, it defaults toinit.sql
.spb-utils-rust -f MyModel spb-utils-rust -f MyModel -t custom.sql
-
-f <name> -dbs <username> <password> <host> <database>
: Creates model files with SQL attributes by connecting to the specified database.spb-utils-rust -f MyModel -dbs username password host database
-
Display help information:
spb-utils-rust -h
-
Parse
pom.xml
and setgroupId
andartifactId
:spb-utils-rust -a
-
Create project directories:
spb-utils-rust -d
-
Manually set
groupId
andartifactId
:spb-utils-rust -s com.example myartifact
-
Create model files with SQL attributes from
init.sql
:spb-utils-rust -f MyModel
-
Create model files with SQL attributes from a custom SQL file:
spb-utils-rust -f MyModel -t custom.sql
-
Create model files with SQL attributes by connecting to the specified database:
spb-utils-rust -f MyModel -dbs username password localhost:3306 database