--startMarker and --endMarker options. For a detailed guide, see the full example below.
Usage
Options
string
required
The exact path or a Glob pattern to the definition file or files. Each definition file must be a YAML or JSON file containing model definitions.
- Example single file path:
definition/models.json - Example Glob pattern:
'definition/**/*.yml'
string
required
The path to the output file.
string
default:"typesync-start"
A marker that indicates the line after which the generated code should be
inserted. Make sure to use a string that is unique within the file. The line
containing the marker must be commented i.e. the marker needs to appear after
the
<!-- (see example).string
default:"typesync-end"
A marker that indicates the line before which the generated code should be
inserted. Make sure to use a string that is unique within the file. The line
containing the marker must be commented i.e. the marker needs to appear after
the
<!-- (see example)."vertical" | "horizontal"
default:"horizontal"
The orientation of the generated Mermaid graph. Can be either
"vertical" or "horizontal" which correspond to the
"TB" and "LR" Mermaid options, respectively.boolean
default:false
Whether to enable debug logs.
Example
Suppose you have a schema definition file namedmodels.yml and a Markdown file named graph.md.
typesync-start and typesync-end markers in the graph.md file, you can run the following command:
graph.md

