util

package
v0.0.0-...-36e834a Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FeatureType is the branch prefix for features.
	FeatureType = "feature"
	// FixType is the branch prefix for bug fixes.
	FixType = "fix"
)

Variables

This section is empty.

Functions

func CraftBranchName

func CraftBranchName(branchType, reference, target string) string

CraftBranchName returns the name of a branch using the params.

func ListBranches

func ListBranches(newGit git.CompatibleConstructor, branchType string) (map[string][]string, error)

ListBranches returns a map containing all open bug fixes and a list of the target branches being develped for each.

func NewBranch

func NewBranch(newGit git.CompatibleConstructor, branchType, target, name string) (string, error)

NewBranch creates a new branch from the given target.

func Picker

func Picker(branchType string, newGit git.CompatibleConstructor, ui interfaces.UI) (string, error)

Picker presents a choice between branches of a type

func PrintList

func PrintList(newGit git.CompatibleConstructor, branchType string, short bool) error

PrintList will print a list of items.

Types

This section is empty.

Jump to

Keyboard shortcuts

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