Documentation
¶
Index ¶
- func CheckRulesJson(file string, bytes []byte) error
- func CompareContentWithFile(sourceBytes []byte, target string) (bool, error)
- func New(outputDir string, templatesDir string, system *model.System, userForce bool) (*generator, error)
- func ReadRulesDoc(filename string) (spec.RulesDoc, error)
- type DataMap
- type GeneratorStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRulesJson ¶ added in v0.8.0
func CompareContentWithFile ¶
Types ¶
type GeneratorStats ¶ added in v0.8.0
type GeneratorStats struct {
FilesWritten int `json:"files_written"`
FilesSkipped int `json:"files_skipped"`
FilesCopied int `json:"files_copied"`
FilesTouched []string `json:"files_touched"`
RunStart time.Time `json:"run_start"`
RunEnd time.Time `json:"run_end"`
Duration time.Duration `json:"duration"`
}
func (*GeneratorStats) Start ¶ added in v0.8.0
func (g *GeneratorStats) Start()
func (*GeneratorStats) Stop ¶ added in v0.8.0
func (g *GeneratorStats) Stop()
func (*GeneratorStats) TotalFiles ¶ added in v0.8.0
func (s *GeneratorStats) TotalFiles() int
Click to show internal directories.
Click to hide internal directories.