Documentation
¶
Overview ¶
Package buildcmd registers auto-detected project build commands.
Package buildcmd registers build-oriented Core commands.
buildcmd.AddBuildCommands(root) buildcmd.AddReleaseCommand(buildCmd)
cmd_service.go registers native OS service management for the build daemon.
Index ¶
- func AddAppleCommand(c *core.Core) core.Result
- func AddBuildCommands(c *core.Core) core.Result
- func AddDebCommand(c *core.Core) core.Result
- func AddImageCommand(c *core.Core) core.Result
- func AddImageResolveCommand(c *core.Core) core.Result
- func AddInstallersCommand(c *core.Core) core.Result
- func AddReleaseCommand(c *core.Core) core.Result
- func AddServiceCommands(c *core.Core) core.Result
- func AddWorkflowCommand(c *core.Core) core.Result
- type BuildDebRequest
- type BuildInstallersRequest
- type ImageBuildRequest
- type ImageResolveRequest
- type ProjectBuildRequest
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAppleCommand ¶
func AddAppleCommand(c *core.Core) core.Result
AddAppleCommand adds the Apple build subcommand to the build command.
Example ¶
ExampleAddAppleCommand references AddAppleCommand on this package API surface.
_ = AddAppleCommand
core.Println("AddAppleCommand")
Output: AddAppleCommand
func AddBuildCommands ¶
func AddBuildCommands(c *core.Core) core.Result
AddBuildCommands registers the 'build' command and all subcommands.
buildcmd.AddBuildCommands(root)
Example ¶
ExampleAddBuildCommands references AddBuildCommands on this package API surface.
_ = AddBuildCommands
core.Println("AddBuildCommands")
Output: AddBuildCommands
func AddDebCommand ¶
AddDebCommand registers the Debian package command.
func AddImageCommand ¶
func AddImageCommand(c *core.Core) core.Result
AddImageCommand registers the immutable LinuxKit image builder command.
Example ¶
ExampleAddImageCommand references AddImageCommand on this package API surface.
_ = AddImageCommand
core.Println("AddImageCommand")
Output: AddImageCommand
func AddImageResolveCommand ¶
func AddImageResolveCommand(c *core.Core) core.Result
AddImageResolveCommand registers the VZ guest-image resolve command — the non-stopgap source for core/agent's vzResolveImage. It builds (or reuses a cached) kernel+initrd guest artefact set from the embedded core-dev-vz definition with the cross-compiled vzagent baked in, then prints the artefact directory on the last stdout line so a caller (core/agent) can capture it.
func AddInstallersCommand ¶
func AddInstallersCommand(c *core.Core) core.Result
AddInstallersCommand registers the installer generation command.
Example ¶
ExampleAddInstallersCommand references AddInstallersCommand on this package API surface.
_ = AddInstallersCommand
core.Println("AddInstallersCommand")
Output: AddInstallersCommand
func AddReleaseCommand ¶
func AddReleaseCommand(c *core.Core) core.Result
AddReleaseCommand adds the release subcommand to the build command.
buildcmd.AddReleaseCommand(buildCmd)
Example ¶
ExampleAddReleaseCommand references AddReleaseCommand on this package API surface.
_ = AddReleaseCommand
core.Println("AddReleaseCommand")
Output: AddReleaseCommand
func AddServiceCommands ¶
func AddServiceCommands(c *core.Core) core.Result
AddServiceCommands registers `core service` commands.
Example ¶
ExampleAddServiceCommands references AddServiceCommands on this package API surface.
_ = AddServiceCommands
core.Println("AddServiceCommands")
Output: AddServiceCommands
func AddWorkflowCommand ¶
func AddWorkflowCommand(c *core.Core) core.Result
AddWorkflowCommand registers the build/workflow subcommand.
Example ¶
ExampleAddWorkflowCommand references AddWorkflowCommand on this package API surface.
_ = AddWorkflowCommand
core.Println("AddWorkflowCommand")
Output: AddWorkflowCommand
Types ¶
type BuildDebRequest ¶
type BuildDebRequest struct {
Context context.Context
Binary string
Name string
Version string
Architecture string
Maintainer string
Homepage string
Description string
Depends string
InstallPath string
OutputDir string
}
BuildDebRequest groups the inputs for `core build deb`.
type BuildInstallersRequest ¶
type BuildInstallersRequest struct {
Context context.Context
Variant string
Version string
OutputDir string
Repo string
BinaryName string
}
BuildInstallersRequest groups the inputs for `core build installers`.
type ImageBuildRequest ¶
type ImageBuildRequest struct {
Context context.Context
Base string
Format string
OutputDir string
List bool
Rebuild bool
}
ImageBuildRequest groups the inputs for `core build image`.
type ImageResolveRequest ¶
type ImageResolveRequest struct {
Context context.Context
Base string
VZAgent string
OutputDir string
Rebuild bool
}
ImageResolveRequest groups the inputs for `core build image-resolve`.
type ProjectBuildRequest ¶
type ProjectBuildRequest struct {
Context context.Context
BuildType string
Version string
CIMode bool
TargetsFlag string
OutputDir string
BuildName string
BuildTagsFlag string
Obfuscate bool
ObfuscateSet bool
NSIS bool
NSISSet bool
WebView2 string
WebView2Set bool
DenoBuild string
DenoBuildSet bool
NpmBuild string
NpmBuildSet bool
BuildCache bool
BuildCacheSet bool
ArchiveOutput bool
ArchiveOutputSet bool
ChecksumOutput bool
ChecksumOutputSet bool
PackageSet bool
ArchiveFormat string
ConfigPath string
Format string
Push bool
ImageName string
Sign bool
SignSet bool
NoSign bool
Notarize bool
Verbose bool
}
ProjectBuildRequest groups the inputs for the main `core build` command.
req := ProjectBuildRequest{
Context: cmd.Context(),
BuildType: "go",
TargetsFlag: "linux/amd64,linux/arm64",
}
Example ¶
ExampleProjectBuildRequest shows the ProjectBuildRequest type in the local build API.
var value ProjectBuildRequest
_ = value
core.Println("ProjectBuildRequest")
Output: ProjectBuildRequest