formula

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 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 {
	Printf(string, ...interface{})
	Infof(string, ...interface{})
	Warnf(string, ...interface{})
	Errorf(string, ...interface{})

	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(workDir, githubToken string, spec *spec.Spec, ui cli.Ui) (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