build

package
v1.0.0-beta.23 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildLogger hclog.Logger = logger.HcLog().Named("build")

Functions

func GetBuildFileName

func GetBuildFileName(projectName string) string

func GetBuildFilePath

func GetBuildFilePath(projectPath, projectName string, targetOs string) string

func IsBuildFileExist

func IsBuildFileExist(projectPath string, projectName string, targetOs string) bool

func PreRun

func PreRun(projectPath string) error

The function `PreRun` checks if the necessary configuration and initialization files exist in the specified project path.

func Run

func Run(f *Flags, config *raiden.Config, projectPath string) error

The Run function builds a Go binary based on the provided flags, configuration, and project path.

Types

type Flags

type Flags struct {
	OS   string
	Arch string
}

The `type Flags struct` is defining a struct called `Flags`. This struct is used to store the values of command-line flags related to the target operating system and processor architecture.

func (*Flags) Bind

func (f *Flags) Bind(cmd *cobra.Command)

The `Bind` method is used to bind the `Flags` struct to a `cobra.Command` object. It sets up the command-line flags for the `OS` and `Arch` fields of the `Flags` struct, allowing the user to specify the target operating system and processor architecture when running the command.

Jump to

Keyboard shortcuts

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