Documentation ¶
Index ¶
- Constants
- func LoadShadow(verbose bool) (map[string]*File, error)
- type File
- func (F *File) FormatRendered() error
- func (F *File) ReadShadow() error
- func (F *File) ReadUser() error
- func (F *File) Render() error
- func (F *File) RenderGolangTemplate() error
- func (F *File) RenderRaymondTemplate() error
- func (F *File) RenderTemplate() error
- func (F *File) UnifyContent() (write bool, err error)
- func (F *File) WriteOutput() error
- func (F *File) WriteShadow() error
- type FileStats
- type Generator
- type GeneratorStats
- type Generators
Constants ¶
View Source
const SHADOW_DIR = ".hof/"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct { // Inputs Filename string Template string In map[string]interface{} // Template parameters TemplateSystem string // Content TemplateContent string RenderContent []byte FinalContent []byte // Shadow related ShadowFile *File UserFile *File // Bookkeeping FileStats }
func (*File) FormatRendered ¶
func (*File) ReadShadow ¶
func (*File) RenderGolangTemplate ¶
func (*File) RenderRaymondTemplate ¶
func (*File) RenderTemplate ¶
func (*File) UnifyContent ¶
func (*File) WriteOutput ¶
func (*File) WriteShadow ¶
type FileStats ¶
type FileStats struct { // using 0 (false) and 1 (true) for easier summation code below IsNew int IsSame int IsSkipped int IsFixed int IsWritten int IsErr int IsModified int IsModifiedRender int IsModifiedOutput int IsModifiedDiff3 int IsConflicted int RenderingTime time.Duration CompareTime time.Duration TotalTime time.Duration }
type Generator ¶
type Generator struct { // Label in Cuelang Name string // These will be set externally In map[string]interface{} Out []map[string]interface{} // Files and the shadow dir for doing neat things Files map[string]*File Shadow map[string]*File // Status for this generator and processing Stats *GeneratorStats // Cuelang related, also set externally CueValue cue.Value }
A generator pulled from the cue instances
func (*Generator) GenerateFiles ¶
type GeneratorStats ¶
type GeneratorStats struct { NumNew int NumSame int NumSkipped int NumFixed int NumDeleted int NumWritten int NumErr int TotalFiles int NumModified int NumModifiedRender int NumModifiedOutput int NumModifiedDiff3 int NumConflicted int CueLoadingTime time.Duration RenderingTime time.Duration TotalTime time.Duration }
func (*GeneratorStats) CalcTotals ¶
func (S *GeneratorStats) CalcTotals(G *Generator) error
func (*GeneratorStats) String ¶
func (S *GeneratorStats) String() string
Click to show internal directories.
Click to hide internal directories.