GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ContextMapper/context-mapper-cli: Context Mapper Command Line Interface (CLI)

BranchesTags
Open more actions menu

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
gradle/wrapper
gradle/wrapper
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.java-version
.java-version
 
 
.sdkmanrc
.sdkmanrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
codecov.yml
codecov.yml
 
 
context_mapper_cli.feature
context_mapper_cli.feature
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

Context Mapper

Context Mapper CLI

Build (master) codecov License Maven Central

This repository contains the Context Mapper CLI - a command line interface to validate CML files and call generators (currently PlantUML, Context Map, and generic text files via Freemarker template).

Download

The CLI can be downloaded under the following links:

  • TAR (Linux, Mac)
  • ZIP (Windows)

In case you want to include Context Mapper in your Maven or Gradle build, you can use the CLI to call generators (for example with Maven exec plugin).

Gradle:

implementation 'org.contextmapper:context-mapper-cli:6.12.0'

Maven:

<dependency>
  <groupId>org.contextmapper</groupId>
  <artifactId>context-mapper-cli</artifactId>
  <version>6.12.0</version>
</dependency>

Validate Command Usage

$ ./cm validate -h
Context Mapper CLI
usage: cm validate
 -h,--help          Prints this message.
 -i,--input <arg>   Path to the CML file which you want to validate.

Generate Command Usage

$ ./cm generate -h
Context Mapper CLI
usage: cm generate
 -f,--outputFile <arg>   The name of the file that shall be generated
                         (only used by Freemarker generator, as we cannot
                         know the file extension).
 -g,--generator <arg>    The generator you want to call. Use one of the
                         following values: context-map (Graphical DDD
                         Context Map), plantuml (PlantUML class-,
                         component-, and state diagrams.), generic
                         (Generate generic text with Freemarker template)
 -h,--help               Prints this message.
 -i,--input <arg>        Path to the CML file for which you want to
                         generate output.
 -o,--outputDir <arg>    Path to the directory into which you want to
                         generate.
 -t,--template <arg>     Path to the Freemarker template you want to use.
                         This parameter is only used if you pass 'generic'
                         to the 'generator' (-g) parameter.

Usage examples

The following examples illustrate the CLI usage.

Validate *.cml File

./cm validate -i DDD-Sample.cml

Generate PlantUML

./cm generate -i DDD-Sample.cml -g plantuml -o ./output-directory

Generate Context Map

./cm generate -i DDD-Sample.cml -g context-map -o ./output-directory

Generate Arbitrary Text File with Freemarker Template

./cm generate -i DDD-Sample.cml -g generic -o ./output-directory -t template.md.ftl -f glossary.md

Development / Build

If you want to contribute to this project you can create a fork and a pull request. The project is built with Gradle, so you can import it as Gradle project within Eclipse or IntelliJ IDEA (or any other IDE supporting Gradle).

# Use sdkman or install manually JDK 17
sdk env install

./gradlew clean build
./gradlew clean build jacocoTestReport
jwebserver -p 9000 -d "$(pwd)/build/reports/"
./gradlew clean build snapshot
java -jar build/libs/context-mapper-cli-0.1.0-SNAPSHOT.jar

Contributing

Contribution is always welcome! Here are some ways how you can contribute:

  • Create GitHub issues if you find bugs or just want to give suggestions for improvements.
  • This is an open source project: if you want to code, create pull requests from forks of this repository. Please refer to a Github issue if you contribute this way.
  • If you want to contribute to our documentation and user guides on our website https://contextmapper.org/, create pull requests from forks of the corresponding page repo https://github.com/ContextMapper/contextmapper.github.io or create issues there.

Licence

ContextMapper is released under the Apache License, Version 2.0.

About

Context Mapper Command Line Interface (CLI)

contextmapper.org/

Topics

clicontext-mappercontext-mappingddddsl

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

23 stars

Watchers

2 watching

Forks

8 forks
Report repository

Releases

Sponsor this project

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.