release

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentBranch

func CurrentBranch() (string, error)

func FindVersion

func FindVersion(path string) (string, error)

Types

type Manager

type Manager struct {
	Version string
	Runners []Runner
}

func New

func New(version string) (*Manager, error)

func (*Manager) Add

func (m *Manager) Add(r Runner)

func (Manager) Run

func (m Manager) Run() error

type Runner

type Runner struct {
	Name string
	Fn   func() error
}

func Command

func Command(name string, args ...string) Runner

func InBranch

func InBranch(name string, fn func() error) Runner

func PackAndCommit

func PackAndCommit() (Runner, error)

func TagRelease

func TagRelease(branch string, version string) (Runner, error)

func UnpackAndCommit

func UnpackAndCommit() (Runner, error)

Jump to

Keyboard shortcuts

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