pipeline

package
v0.0.0-...-1b94cb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplatePipeline

type TemplatePipeline interface {
	Read(filePath string) (*parser.GeneralConfig, error)
	Generate(*parser.GeneralConfig) error
}

type YamlPipeline

type YamlPipeline struct {
	ConfigPath         string
	FullstackGenerator fullstack.TemplateGenerator
	UiGenerator        ui.TemplateGenerator
	ApiGenerator       api.TemplateGenerator
}

Pipeline to read and run the template generation based on a YAML config file.

func (*YamlPipeline) Generate

func (p *YamlPipeline) Generate(cfg *parser.GeneralConfig) error

1. Creates and parses the base template. 2. Augments the base template according to the config.

func (*YamlPipeline) Read

func (p *YamlPipeline) Read(configPath string) (*parser.GeneralConfig, error)

Should read and validate the template config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL