runner

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const EXTERNAL_PKGS_ARG_PATTERN = "%s=%s"

The pattern of the external package argument.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

Compiler is a wrapper of kcl compiler.

func DefaultCompiler

func DefaultCompiler() *Compiler

DefaultCompiler will create a default compiler.

func NewCompilerWithOpts

func NewCompilerWithOpts(opts *opt.CompileOptions) *Compiler

func (*Compiler) AddDepPath

func (compiler *Compiler) AddDepPath(depName string, depPath string) *Compiler

AddDep will add a file path to the dependency list.

func (*Compiler) AddKFile

func (compiler *Compiler) AddKFile(kFilePath string) *Compiler

AddKFile will add a k file to the compiler.

func (*Compiler) AddKclOption

func (compiler *Compiler) AddKclOption(opt kcl.Option) *Compiler

AddKclOption will add a kcl option to the compiler.

func (*Compiler) Run

func (compiler *Compiler) Run() (*kcl.KCLResultList, error)

Call KCL Compiler and return the result.

Jump to

Keyboard shortcuts

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