Skip to content

Commit

Permalink
convert "hof gen" to use attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Jun 7, 2020
1 parent 60e7aa5 commit 72dde1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions hof.cue
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,3 @@ UserSecret: g_cuefig.#HofGenerator & {
Outdir: "gen/"
Config: d_cfg.#HofUserSecret
}

Foo: _ @gen(foo,bar=fuck)

6 changes: 4 additions & 2 deletions lib/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,15 @@ func (R *Runtime) LoadGenerators() []error {

func (R *Runtime) RunGenerators() []error {
var errs []error
var err error
// var err error

/*
R.Shadow, err = gen.LoadShadow("", R.verbose)
if err != nil {
errs = append(errs, err)
return errs
}
*/

// Load shadow, can this be done in parallel with the last step?
// Don't do in parallel yet, Cue is slow and hungry for memory @ v0.0.16
Expand Down Expand Up @@ -227,10 +229,10 @@ func (R *Runtime) WriteOutput() []error {


for _, G := range R.Generators {
// fmt.Println("Write Output", G.Name)
if G.Disabled {
continue
}
fmt.Println("Write Output", G.Name)

writestart := time.Now()

Expand Down

0 comments on commit 72dde1e

Please sign in to comment.