Skip to content

Files

Latest commit

e4ca531 · Mar 13, 2025

History

History
76 lines (60 loc) · 2.17 KB

README.md

File metadata and controls

76 lines (60 loc) · 2.17 KB

SpringUp

Features that should work:

[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)

Usage

Commands

  • -a: Parses the pom.xml file and sets the groupId and artifactId from it.

    spb-utils-rust -a
  • -d: Creates the necessary directories for the project structure based on the groupId and artifactId from the configuration file.

    spb-utils-rust -d
  • -s <groupId> <artifactId>: Manually sets the groupId and artifactId 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 to init.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

Examples

  • Display help information:

    spb-utils-rust -h
  • Parse pom.xml and set groupId and artifactId:

    spb-utils-rust -a
  • Create project directories:

    spb-utils-rust -d
  • Manually set groupId and artifactId:

    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