Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 662 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 662 Bytes

StarUML CLI Examples

Note that StarUML CLI is supported from the version 5.x

To see help:

$ staruml --help

EJS examples

To run examples, first clone this repository:

$ git clone https://github.com/staruml/staruml-cli-examples.git
$ cd staruml-cli-examples

Simple HTML Page

Generate a simple HTML page showing all UMLClasses.

$ staruml ejs models/library.mdj \
  -t ejs/class-list.ejs \
  -o class-list.html

Simple Java Class

Generate Java class files for all UMLClasses.

$ staruml ejs models/library.mdj \
  -t ejs/java-class.ejs \
  -s @UMLClass \
  -o "out/<%=filenamify(element.name)%>.java"