Documentation ¶
Index ¶
- func EnsureDir(filePath string) error
- func LoadSchema(inputs ...string) (*ast.Schema, error)
- type Config
- type ExecutionContext
- func (e *ExecutionContext) AddLoadedSchema(key string, schema *ast.Schema)
- func (e *ExecutionContext) Execute()
- func (e *ExecutionContext) ExecuteDestinationTasks(destinationConfig Generates, output *strings.Builder, schema *ast.Schema, ...)
- func (e *ExecutionContext) GetSchema(key string) *ast.Schema
- func (e *ExecutionContext) LoadSchemas() int
- func (e *ExecutionContext) SetProjects(projects []Project)
- type Generates
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Schemas []string `yaml:"schema"` Documents []string `yaml:"documents"` Overwrite bool `yaml:"overwrite"` Generates map[string]Generates `yaml:"generates"` }
func ParseJSConfig ¶
ParseJSConfig parses a given JS string
func ParseTSConfig ¶
ParseTSConfig parses a given TS string
func ParseYAMLConfig ¶
type ExecutionContext ¶
func (*ExecutionContext) AddLoadedSchema ¶
func (e *ExecutionContext) AddLoadedSchema(key string, schema *ast.Schema)
func (*ExecutionContext) Execute ¶
func (e *ExecutionContext) Execute()
func (*ExecutionContext) ExecuteDestinationTasks ¶
func (*ExecutionContext) LoadSchemas ¶
func (e *ExecutionContext) LoadSchemas() int
LoadSchemas will find every project with a unique list of schemas and load those to cache.
func (*ExecutionContext) SetProjects ¶
func (e *ExecutionContext) SetProjects(projects []Project)
Click to show internal directories.
Click to hide internal directories.