Minnal Generator provides a command line utility to generate the constructs of Minnal. The generator comes packaged as a binary. Click here for instructions on installing the generator binary.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | $ minnal -help new
Create a new minnal project
Usage: new [options] The name of the project to create
Options:
-basedir
The dir under which the project has to be created
Default: /Volumes/data/flipkart/experiments/minnal/minnal-generator
-noadmin
Exclude admin application
Default: false
-noinst
Exclude instrumenation bundle
Default: false
-nojpa
Exclude Jpa plugin
Default: false
-version
The minnal version to use
Default: 1.0.4
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | $ minnal -help generate-model
Generates a model class
Usage: generate-model(generate) [options] The name of the model to create
Options:
-aggregateRoot
Is this model an aggregate root?
Default: false
-fields
The fields in the model. Format name:type:searchable. Type is the java
type of the field (string, integer, long, short, char, double, float, date,
timestamp, boolean). Searchable is a boolean that specifies if the field is a
searchable field
-projectDir
The project directory
Default: /Volumes/data/flipkart/experiments/minnal/minnal-generator
|
1 2 3 4 5 6 7 8 9 10 11 | $ minnal -help generate-tests
Generates the resource tests
Usage: generate-tests [options]
Options:
-packages
The list of packages
Default: []
-projectDir
The project directory
Default: /Volumes/data/flipkart/experiments/minnal/minnal-generator
|
1 2 3 4 5 6 7 8 | $ minnal -help start
Start the minnal project
Usage: start [options] The minnal project directory
Options:
-projectDir
The project directory
Default: /Volumes/data/flipkart/experiments/minnal/minnal-generator
|
Debug
- Include -debug to enable DEBUG levelTrace
- Include -trace to enable TRACE level