- general cleanup, bugfixing, refactoring
- rework
hof gen
schemas - remove some disjunctions in schema to improve performance
- better error messages
- enable subgenerators
hof datamodel is a tool to manage your models. Define, validate, checkpoint, diff, and migrate.
See the following to learn more:
hof datamodel -h
- getting-started/data-modeling
- reference/hof-datamodel
- data files from generators
- various bugfixes
- cleanup and legacy code removal
hof flow is a custom cue/flow runtime with more task types.
See the following to learn more:
hof flow -h
- getting-started/data-flow
- reference/hof-flow
- CUE v0.4.3
- Go v1.18
- other dep updates
- various bugfixes
Adds flags to hof gen
to support adhoc code gen,
so you do not need to setup a generator to use.
--template
/-T
flag to specify templates, input data, schemas, and output files--partial
/-P
flag to support adhoc partial templates--watch
/-w
flag to suport watching globs and regenerating (also works for generators)--as-module
flag turns your other flags into a reusable and sharable generator module
The -T
flag has a flexible format so you can
supply multiple templates and control the data.
It lets you specify the mapping from template
to input & schema, to output filepath.
hof gen data.cue -T template.txt
hof gen data.yaml schema.cue -T template.txt > output.txt
See the following to learn more
hof gen -h
- getting-started/file-rendering
- getting-started/type-rendering
- reference/hof-gen/adhoc-file-gen
- added
dict
to template helpers to create maps, useful for passing more than one arg to a partial template - load data with CUE code, more inline with
cue
- (bug) remove some shell completetion hacks
- more tests, bugfixes, and dep updates
- some small changes to the datamodel schema, namely attribute change to prep for enhancemnts