entrypoint

package
v0.0.0-...-703489d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx Context) int

Execute is the main entry point for the mage command. It will change the current working directory to the build directory given as Context BuildDir parameter, if given.

Types

type Context

type Context struct {
	Directories
	Options []InvocationOption
}

Context is a context for the mage execution.

type Directories

type Directories struct {
	BuildDir   string
	ProjectDir string
	CacheDir   string
}

Directories is a configuration of project directories.

type InvocationOption

type InvocationOption func(mage.Invocation) mage.Invocation

InvocationOption is a function that can be used to modify mage.Invocation.

Jump to

Keyboard shortcuts

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