Skip to content

FINTLabs/fint-consumer

Repository files navigation

fint-consumer

Build Status MIT license

Description

Generates Java consumer code from EA XMI export. This utility is mainly for internal FINT use, but if you find it useful, please use it!

Usage

$ fint-consumer
NAME:
   fint-consumer - Generates consumer code from EA XMI export. This utility is mainly for internal FINT use, but if you find it usefull, please use it!

USAGE:
   fint-consumer [global options] command [command options] [arguments...]

VERSION:
   2.0.0

AUTHOR:
   FINTLabs

COMMANDS:
     generate      generates consumer code
     listPackages  list Java packages
     listTags      list tags
     listBranches  list branches
     setup         setup a consumer project
     help, h       Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --owner value          Git repository containing model (default: "FINTLabs") [$GITHUB_OWNER]
   --repo value           Git repository containing model (default: "fint-informasjonsmodell") [$GITHUB_PROJECT]
   --filename value       File name containing information model (default: "FINT-informasjonsmodell.xml") [$MODEL_FILENAME]
   --tag value, -t value  the tag (version) of the model to generate (default: "latest")
   --force, -f            force downloading XMI for GitHub.
   --help, -h             show help
   --version, -v          print the version

The downloaded XMI file is put in the $HOME/.fint-consumer/.cache. If you don't use the force flag and the file exists in the cache directory it uses this one.

Install

Binaries

Binaries

Precompiled binaries are available as a Github Package

Mount the directory where you want the generated source code to be written as /src.

Linux / MacOS:

docker run -v $(pwd):/src ghcr.io/fintlabs/fint-consumer:v2.5.3 <ARGS>

Windows PowerShell:

docker run -v ${pwd}:/src ghcr.io/fintlabs/fint-consumer:v2.5.3 <ARGS>

Go

To install, use go get:

go get -d github.com/FINTLabs/fint-consumer
go install github.com/FINTLabs/fint-consumer

Release

Create new release in Github, Github Actions will push to Github Packages.

Author

FINTLabs

About

FINT Consumer generator

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 7

Languages