cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLI

func CLI() int

CLI runs copygen from a Command Line Interface and returns the exit status.

Types

type Environment

type Environment struct {
	YMLPath        string // The .yml file path used as a configuration file.
	Output         bool   // Whether to print the generated code to stdout.
	Write          bool   // Whether to write the generated code to a file.
	DisableMatcher bool   // Whether to disable the matcher.
}

Environment represents the copygen environment.

func (*Environment) Run added in v0.3.0

func (e *Environment) Run() (string, error)

Run runs copygen programmatically using the given Environment's YMLPath.

Directories

Path Synopsis
Package config loads configuration data from an external file.
Package config loads configuration data from an external file.
Package generator generates code.
Package generator generates code.
interpreter
Package interpreter interprets template code at runtime.
Package interpreter interprets template code at runtime.
interpreter/extract
Package extract uses the `yaegi extract` tool in order to generate the reflect.Value symbols of internal types.
Package extract uses the `yaegi extract` tool in order to generate the reflect.Value symbols of internal types.
template
Package template provides a template used by copygen to generate custom code.
Package template provides a template used by copygen to generate custom code.
Package matcher matches fields.
Package matcher matches fields.
Package models defines the domain models that model field relations and manipulation.
Package models defines the domain models that model field relations and manipulation.
Package parser parses a setup file's functions, types, and fields using an Abstract Syntax Tree.
Package parser parses a setup file's functions, types, and fields using an Abstract Syntax Tree.
options
Package options parses function comments and sets them to fields.
Package options parses function comments and sets them to fields.

Jump to

Keyboard shortcuts

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