formula

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: ISC Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formula

type Formula interface {
	Info(string)
	Warn(string)
	Error(string)

	Cover(context.Context) error
	Compile(context.Context) error
	CrossCompile(context.Context) ([]string, error)
	Release(ctx context.Context, level ReleaseLevel, comment string) error
}

Formula is the interface for all available formulas

func New

func New(ui cli.Ui, spec *spec.Spec, workDir, githubToken string) (Formula, error)

New creates a new instance of formula

type ReleaseLevel

type ReleaseLevel int

ReleaseLevel specifies the level of a release (patch, minor, or major)

const (
	// PatchRelease releases a the patch component of a semantic version
	PatchRelease ReleaseLevel = iota
	// MinorRelease releases a the minor component of a semantic version
	MinorRelease
	// MajorRelease releases a the major component of a semantic version
	MajorRelease
)

Jump to

Keyboard shortcuts

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