choose

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionList     = "list"
	ActionCheckout = "checkout"
	ActionRemove   = "remove"
	ActionProjects = "projects"
)

Action name

View Source
const (

	// ExitLabel name
	ExitLabel = "exit"
	// ExitValue representation
	ExitValue = 0
	// AllValue representation
	AllValue = math.MaxInt32
)

Variables

This section is empty.

Functions

func Action

func Action() (string, error)

Action get PRM action

func GitRemote

func GitRemote(remotes []local.Remote) (string, error)

GitRemote Choose the remote related to PRs (main remote)

func Project

func Project(configs []config.Configuration) (*config.Configuration, error)

Project Choose a project in the list

func PullRequest

func PullRequest(pulls map[string][]types.PullRequest, all bool) (int, error)

PullRequest Choose a PR in the list

func RemotePulRequest added in v1.10.0

func RemotePulRequest(prs []*github.PullRequest) (int, error)

RemotePulRequest Choose a PR in the list from GitHub

Types

This section is empty.

Jump to

Keyboard shortcuts

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