exec hof mod vendor

exec hof gen -t maybe=true
exists out/always.txt
exists out/dir/maybe.txt
exists out/dir

exec hof gen
exists out/always.txt
! exists out/dir/maybe.txt
! exists out/dir

-- cue.mod/module.cue --
module: "hof.io/test"
cue: "0.6.0"

require: {
	"github.com/hofstadter-io/hof": "v0.6.8-rc.5"
}

-- gen.cue --
package main

import "github.com/hofstadter-io/hof/schema/gen"

g: gen.Generator & {
	@gen()

	maybe: bool | *false @tag(maybe,type=bool)

	Outdir: "out"
	ModuleName: ""

	Out: [
		{ TemplatePath: "always.txt", Filepath: "always.txt" },
		if maybe { TemplatePath: "maybe.txt", Filepath: "dir/maybe.txt" },
	]
}

-- templates/always.txt --
I'm always generated
-- templates/maybe.txt --
I was generated too
