Documentation
¶
Overview ¶
Package smartbuild implements the smart_build tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Params ¶
type Params struct {
Dir string `json:"dir" jsonschema:"The absolute directory path to build in. Required."`
Packages string `json:"packages,omitempty" jsonschema:"Packages to build (default: ./...)"`
Output string `json:"output,omitempty" jsonschema:"The build output binary target path (-o)."`
}
Params defines the input parameters.
type Runner ¶
type Runner interface {
Run(ctx context.Context, dir, name string, args ...string) error
RunWithOutput(ctx context.Context, dir, name string, args ...string) (string, error)
LookPath(file string) (string, error)
}
Runner defines the interface for running commands.
var CommandRunner Runner = &stdRunner{}
CommandRunner is used to execute CLI commands.
Click to show internal directories.
Click to hide internal directories.