Versions in this module Expand all Collapse all v0 v0.0.0 Aug 1, 2022 Changes in this version + const CUE_VENDOR_DIR + const SHADOW_DIR + const Sep1 + const Sep2 + const Sep3 + var DiffMatchPatch = diffmatchpatch.New() + func DoWatch(F func(fast bool) (chan bool, error), dofast, onfirst bool, files []string, ...) error + func Gen(args []string, rootflags flags.RootPflagpole, cmdflags flags.GenFlagpole) error + func InitModule(args []string, rootflags flags.RootPflagpole, cmdflags flags.GenFlagpole) error + func LoadShadow(subdir string, verbosity int) (map[string]*File, error) + func Merge(textO, textA, textB string) string + func NewDebouncer(after time.Duration) func(f func()) + type AdhocTemplateConfig struct + Cuepath string + Filepath string + Outpath string + Repeated bool + Schema string + type File struct + DatafileFormat string + DoWrite bool + Errors []error + Filepath string + FinalContent []byte + In interface{} + RenderContent []byte + ShadowFile *File + TemplateContent string + TemplateDelims *templates.Delims + TemplateInstance *templates.Template + TemplatePath string + UserFile *File + Value cue.Value + func (F *File) FormatRendered() error + func (F *File) ReadUser(outdir string) error + func (F *File) Render(outdir string, UseDiff3 bool) error + func (F *File) RenderData() (err error) + func (F *File) RenderTemplate() (err error) + func (F *File) UnifyContent(UseDiff3 bool) (write bool, err error) + func (F *File) WriteOutput(basedir string) error + func (F *File) WriteShadow(basedir string) error + type FileStats struct + CompareTime time.Duration + IsConflicted int + IsErr int + IsModified int + IsModifiedDiff3 int + IsModifiedOutput int + IsModifiedRender int + IsNew int + IsSame int + IsSkipped int + IsWritten int + RenderingTime time.Duration + TotalTime time.Duration + type Generator struct + CueValue cue.Value + Debug bool + Disabled bool + EmbeddedPartials map[string]*TemplateContent + EmbeddedStatics map[string]string + EmbeddedTemplates map[string]*TemplateContent + Files map[string]*File + Generators map[string]*Generator + In map[string]interface{} + Name string + OrderedFiles []*File + Out []*File + Outdir string + PackageName string + Partials []*TemplateGlobs + PartialsMap templates.TemplateMap + Shadow map[string]*File + Statics []*StaticGlobs + Stats *GeneratorStats + TemplateMap templates.TemplateMap + Templates []*TemplateGlobs + UseDiff3 bool + Val cue.Value + WatchFast []string + WatchFull []string + func NewGenerator(label string, value cue.Value) *Generator + func (G *Generator) GenerateFiles(outdir string) []error + func (G *Generator) Initialize() []error + func (G *Generator) LoadCue() (errs []error) + func (G *Generator) ResolveFile(F *File) error + type GeneratorStats struct + LoadingTime time.Duration + NumConflicted int + NumDeleted int + NumErr int + NumModified int + NumModifiedDiff3 int + NumModifiedOutput int + NumModifiedRender int + NumNew int + NumSame int + NumSkipped int + NumStatic int + NumWritten int + RenderingTime time.Duration + TotalFiles int + TotalTime time.Duration + WritingTime time.Duration + func (S *GeneratorStats) CalcTotals(G *Generator) error + func (S *GeneratorStats) String() string + type Runtime struct + CueRuntime *cuetils.CueRuntime + Entrypoints []string + Flagpole flags.GenFlagpole + Generators map[string]*Generator + Stats *RuntimeStats + Verbosity int + func NewRuntime(entrypoints []string, cmdflags flags.GenFlagpole) *Runtime + func (R *Runtime) AsModule() error + func (R *Runtime) ClearGenerators() + func (R *Runtime) CreateAdhocGenerator() error + func (R *Runtime) ExtractGenerators() error + func (R *Runtime) ListGenerators() (gens []string, err error) + func (R *Runtime) LoadCue() (err error) + func (R *Runtime) LoadGenerators() []error + func (R *Runtime) PrintMergeConflicts() + func (R *Runtime) PrintStats() + func (R *Runtime) Reload(fast bool) error + func (R *Runtime) RunGenerator(G *Generator) (errs []error) + func (R *Runtime) RunGenerators() []error + func (R *Runtime) WriteGenerator(G *Generator) (errs []error) + func (R *Runtime) WriteOutput() []error + type RuntimeStats struct + CueLoadingTime time.Duration + GenLoadingTime time.Duration + GenRunningTime time.Duration + func (S *RuntimeStats) String() string + type StaticGlobs struct + Globs []string + OutPrefix string + TrimPrefix string + type TemplateContent struct + Content string + Delims *templates.Delims + type TemplateGlobs struct + Delims *templates.Delims + Globs []string + TrimPrefix string