Skip to content

Latest commit

 

History

History
94 lines (62 loc) · 2.71 KB

0.6.x.md

File metadata and controls

94 lines (62 loc) · 2.71 KB

v0.6.x changelogs

v0.6.0

v0.6.0

  • general cleanup, bugfixing, refactoring
  • rework hof gen schemas
  • remove some disjunctions in schema to improve performance
  • better error messages
  • enable subgenerators

v0.6.1

v0.6.0...v0.6.1

hof datamodel

hof datamodel is a tool to manage your models. Define, validate, checkpoint, diff, and migrate.

See the following to learn more:

Other

  • data files from generators
  • various bugfixes
  • cleanup and legacy code removal

v0.6.2

v0.6.1...v0.6.2

hof flow

hof flow is a custom cue/flow runtime with more task types.

See the following to learn more:

Other

  • CUE v0.4.3
  • Go v1.18
  • other dep updates
  • various bugfixes

v0.6.3

v0.6.2...v0.6.3

hof gen adhoc mode

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

Other

  • 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