config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RepoDir holds a repository path.
	RepoDir string

	// BuildDirPath holds a build dir path.
	BuildDirPath = []string{"build", "_output"}
	// MageTag holds default mage tag settings.
	MageTag = MageTagStruct{
		Color: color.FgCyan,
		Label: "[MAGE]",
	}

	// Dependencies will hold additional dependencies that needs to be installed
	// before running tasks.
	Dependencies = []string{
		"github.com/kyoh86/richgo",
		"github.com/mgechev/revive",
		"honnef.co/go/tools/cmd/staticcheck",
	}

	// VersionVariablePath a Golang path to version holding variable.
	VersionVariablePath string

	// Binaries a list of binaries to build.
	Binaries []Binary

	// CleaningTasks additional cleaning tasks.
	CleaningTasks []CustomTask

	// Checks holds a list of checks to perform.
	Checks []CustomTask
)

Functions

This section is empty.

Types

type Binary

type Binary struct {
	Name string
}

Binary represents a binary that will be built.

type CustomTask added in v0.4.1

type CustomTask struct {
	Name string
	Task func() error
}

CustomTask is a custom function that will be used in the build.

type MageTagStruct

type MageTagStruct struct {
	Color color.Attribute
	Label string
}

MageTagStruct holds a mage tag.

Jump to

Keyboard shortcuts

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