At the moment, hubi
can only be used via command line, and thus you can script upon it using the API presented on this document.
Show the commands bellow
$ hubi help
Logs the ubiquitous language entities to the console, in order to allow you to read it before saving it (useful for contributors)
$ hubi log --pattern src/*.yml --translator site
--pattern | -p
is a glob pattern to your domain files, defaults tosrc/**/*.yml
--translator | -t
which translator will be use to put the domain files into the console, defaults tolog
--verbose | -v
which allows debugging
⚠️ At the moment we partially support two real translators,site
orjoi
. But you can also play withubi
andlog
which served as proof of concept tohubi
.
$ hubi save --pattern src/*.yml --translator site --same-folder
Saves the ubiquitous language entities into source files
- the same arguments as
log
, plus --output | -o
is the folder to which files will be saved, defaults todomain
--same-folder | -s
overides the output flag, by geneating the source file on the same folder as the token's domain file.