context

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArgs

func NewArgs(flag string) *args

Types

type Context

type Context struct {
	Image               string            `json:"image,omitempty"`
	Env                 map[string]string `json:"environment_variables"`
	Variables           []string          `json:"ldflag_variables"`
	WASM                bool              `json:"wasm"`
	OS                  []string          `json:"operating_systems"`
	BuildFlags          []string          `json:"build_flags"`
	StripSymbols        bool              `json:"strip_symbols,omitempty"`
	StripDebugging      bool              `json:"disable_DWARF,omitempty"`
	LinkedLibPath       []string          `json:"linked_lib_path,omitempty"`
	ExtLD               string            `json:"extld,omitempty"`
	Shared              bool              `json:"shared"`
	ExtLDFlags          []string          `json:"extldflags,omitempty"`
	LDFlags             []string          `json:"ldflags,omitempty"`
	TempDir             string            `json:"tmp_dir,omitempty"`
	Tags                []string          `json:"tags,omitempty"`
	InstallDependencies bool              `json:"install_dependencies,omitempty"`
	Verbose             bool              `json:"verbose,omitempty"`
	CWD                 string            `json:"current_working_directory"`
	ASMFlags            *args             `json:"asm_flags"`
	GCCGoFlags          *args             `json:"gcc_go_flags"`
	GCFlags             *args             `json:"gc_flags"`
	Name                string            `json:"name"`
	OutputPath          string            `json:"output_dir"`
	OutputFileName      string            `json:"output_filename"`
	Tidy                bool              `json:"auto_tidy"`
	Tiny                bool              `json:"use_tinygo"`
	UPX                 bool              `json:"use_upx"`
	BuildFast           bool              `json:"build_fast"`
	PreRun              []string          `json:"before_run"`
	PostRun             []string          `json:"after_run"`
	PreBuild            []string          `json:"before_build"`
	PostBuild           []string          `json:"after_build"`
	Port                int
	IgnoreCache         bool
	Cached              bool
	Prekill             bool
	// contains filtered or unexported fields
}

func New

func New(profiles ...string) *Context

func (*Context) AddBuildFlag

func (ctx *Context) AddBuildFlag(name string, value ...string)

func (*Context) AddLinkedFlag

func (ctx *Context) AddLinkedFlag(value string)

func (*Context) AddLinkedVariable

func (ctx *Context) AddLinkedVariable(key string, value string)

func (*Context) AddTag

func (ctx *Context) AddTag(tag string)

func (*Context) BuildCommand

func (ctx *Context) BuildCommand(colorized ...bool) *command.Command

func (*Context) Configure

func (ctx *Context) Configure()

func (*Context) GetConfig added in v1.0.2

func (ctx *Context) GetConfig() *config.Config

func (*Context) InputFile

func (ctx *Context) InputFile() string

func (*Context) Output

func (ctx *Context) Output() string

func (*Context) OutputFile

func (ctx *Context) OutputFile() string

func (*Context) RunCommand

func (ctx *Context) RunCommand(colorized ...bool) *command.Command

Jump to

Keyboard shortcuts

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