runner

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package runner is a package that provides a programmatic interface to the code generation tool.

Index

Constants

View Source
const (
	// AllGenerator is a constant to run all generators.
	AllGenerator = "all"
	// ModelGenerator is a constant to run the model generator.
	ModelGenerator = "model"
	// ConvertGenerator is a constant to run the convert generator.
	ConvertGenerator = "convert"
	// GraphqlGenerator is a constant to run the graphql generator.
	GraphqlGenerator = "graphql"
	// MigrationGenerator is a constant to run the migration generator.
	MigrationGenerator = "migration"
)

Variables

This section is empty.

Functions

func Execute

func Execute(vspecReader, definitionsReader io.Reader, generators []string, cfg Config) error

Execute runs the code generation tool.

Types

type Config

type Config struct {
	PackageName string
	OutputDir   string
	GraphQL     graphql.Config
	Convert     convert.Config
	Migration   migration.Config
}

Config is the configuration for the code generation tool.

Jump to

Keyboard shortcuts

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