epsilon-clj put emphasis on being able to integrate generation workflow into your own. Having a library that does
not have a CLI introduces some complexities when you want to take advantage of your CI/CD, and thus epsilon-clj
should avoid being that library.
This page serves as a reference guide on different commands and options you can use.
!!! info
For most up-to-date commands and options, use -h or --help option.
It is also assumed that you have also installed epsilon-clj. If not, check out
Installation page.
generateGenerate all files. Requires
!!! info This option will run validation against the models before generation.
validateValidate all models. Requires
-h --helpPrints out help message.
-d --dirPoints epsilon-clj to the directory that contains all the templates used for file generation.
-m --modelAdd an XML model to be used for generation. Can be used multiple times.
-o --outputWhere to put all the generated files.
-w --watchEnable watch mode on the given directories. Any changes will trigger a regeneration.
# Display help message.
$ java -jar epsilon-{{ file.version }}-standalone.jar -h
# Execute generation with a model, a template directory and an output directory
$ java -jar epsilon-{{ file.version }}-standalone.jar -m "model.xml" -d "templates" -o "gen" generate
# Execute watch mode with a model, a template directory and an output directory
$ java -jar epsilon-{{ file.version }}-standalone.jar -m "model.xml" -d "templates" -o "gen" -w generate
# Execute validation with a model and a template directory
$ java -jar epsilon-{{ file.version }}-standalone.jar -m "model.xml" -d "templates" validate
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |