cli

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompilerArgs

type CompilerArgs struct {
	// CodegenDir is a directory to use for code-generation.
	// If empty, a temporary dir will be used.
	CodegenDir string
	// OutputPath is a path to the output file including {buildHash}.
	// Should have a .cbus.so suffix for controllerbus to recognize.
	// ex: demo.{buildHash}.cbus.so
	OutputPath string
	// PluginBinaryID is the plugin binary ID to set for the output plugin.
	PluginBinaryID string
	// PluginBinaryVersion is the plugin binary version to set for the output.
	// Can contain {buildHash}.
	// ex: dev-{buildHash}
	// If empty: uses {buildHash}.
	PluginBinaryVersion string

	// BuildPrefix sets the build prefix if compiling once
	BuildPrefix string
	// NoCleanup indicates we should not cleanup after we are done.
	NoCleanup bool
}

CompilerArgs contains common flags for the plugin compiler.

func (*CompilerArgs) BuildDevtoolCommand

func (a *CompilerArgs) BuildDevtoolCommand() cli.Command

BuildDevtoolCommand returns the devtool sub-command set.

func (*CompilerArgs) BuildFlags

func (a *CompilerArgs) BuildFlags() []cli.Flag

BuildFlags attaches the flags to a flag set.

func (*CompilerArgs) BuildSubCommands

func (a *CompilerArgs) BuildSubCommands() []cli.Command

BuildSubCommands builds the sub-command set.

func (*CompilerArgs) Validate

func (a *CompilerArgs) Validate() error

Validate validates the arguments.

Jump to

Keyboard shortcuts

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