build

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean added in v0.3.0

func Clean(args []string, conf *Config)

func DefaultAppExt

func DefaultAppExt() string

func Do

func Do(args []string, conf *Config)

func ParseArgs added in v0.3.0

func ParseArgs(args []string, swflags map[string]bool) (flags, patterns []string, verbose bool)

func SkipFlagArgs added in v0.3.0

func SkipFlagArgs(args []string) int

Types

type Config

type Config struct {
	BinPath string
	AppExt  string   // ".exe" on Windows, empty on Unix
	OutFile string   // only valid for ModeBuild when len(pkgs) == 1
	RunArgs []string // only valid for ModeRun
	Mode    Mode
}

func NewDefaultConf

func NewDefaultConf(mode Mode) *Config

type Mode

type Mode int
const (
	ModeBuild Mode = iota
	ModeInstall
	ModeRun
)

Jump to

Keyboard shortcuts

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