cli

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source

Generated From https://patorjk.com/software/taag/#p=display&f=ANSI%20Shadow&t=Klotho

Variables

This section is empty.

Functions

func CloseTreeSitter

func CloseTreeSitter(result *core.CompilationResult)

func GetLanguagesUsed

func GetLanguagesUsed(result *core.CompilationResult) []core.ExecutableType

func GetResourceTypeCount

func GetResourceTypeCount(result *core.CompilationResult, cfg *config.Application) (resourceCounts []string)

func OptionOrDefault

func OptionOrDefault(given string, defaultValue string) string

func OutputAST

func OutputAST(input *core.InputFiles, outDir string) error

func OutputCapabilities

func OutputCapabilities(input *core.InputFiles, outDir string) error

func OutputResources

func OutputResources(result *core.CompilationResult, outDir string) (resourceCounts map[string]int, err error)

func SetOptions

func SetOptions(options map[string]string) error

func ShouldCheckForUpdate added in v0.6.1

func ShouldCheckForUpdate(updateStreamOverride string, defaultUpdateStream string, currVersion string) bool

Types

type ErrorHandler

type ErrorHandler struct {
	InternalDebug bool
	Verbose       bool
	PostPrintHook func()
}

func (ErrorHandler) PrintErr

func (h ErrorHandler) PrintErr(err error)

type KlothoMain

type KlothoMain struct {
	DefaultUpdateStream string
	Version             string
	VersionQualifier    string
	PluginSetup         func(*PluginSetBuilder) error
}

func (KlothoMain) Main

func (km KlothoMain) Main()

type Options

type Options struct {
	Update UpdateOptions `yaml:",omitempty"`
}

func ReadOptions

func ReadOptions() (Options, error)

type PluginSetBuilder

type PluginSetBuilder struct {
	Cfg       *config.Application
	Parse     []core.Plugin
	Units     []core.Plugin
	Transform []core.Plugin
	Topology  []core.Plugin
	Infra     []core.Plugin
	// contains filtered or unexported fields
}

PluginSetBuilder is a crude "plugin dependency" helper struct for managing the order of plugins via stages. TODO improve the flexibility and expressivity to capture the real dependencies between plugins.

func (*PluginSetBuilder) AddAll

func (b *PluginSetBuilder) AddAll() error

func (*PluginSetBuilder) AddCSharp added in v0.6.2

func (b *PluginSetBuilder) AddCSharp() error

func (*PluginSetBuilder) AddExecUnit

func (b *PluginSetBuilder) AddExecUnit() error

func (*PluginSetBuilder) AddGo

func (b *PluginSetBuilder) AddGo() error

func (*PluginSetBuilder) AddJavascript

func (b *PluginSetBuilder) AddJavascript() error

func (*PluginSetBuilder) AddPostCompilation

func (b *PluginSetBuilder) AddPostCompilation() error

func (*PluginSetBuilder) AddPulumi

func (b *PluginSetBuilder) AddPulumi() error

func (*PluginSetBuilder) AddPython

func (b *PluginSetBuilder) AddPython() error

func (PluginSetBuilder) Plugins

func (b PluginSetBuilder) Plugins() []core.Plugin

type UpdateOptions

type UpdateOptions struct {
	Stream string `yaml:",omitempty"`
}

Jump to

Keyboard shortcuts

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