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 hot compiler.
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.
Click to show internal directories.
Click to hide internal directories.