choose

package
v3.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 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 Fork

func Fork() (bool, error)

Fork Choose to create a fork automatically.

func GitRemote

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

GitRemote Choose the remote related to PRs (main remote).

func MainBranch added in v3.5.0

func MainBranch(branches []string) (string, error)

MainBranch Choose the main branch of the repository.

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

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

RemotePulRequest Choose a PR in the list from GitHub.

func Username added in v3.2.0

func Username() (string, error)

Username Asking for the GitHub username.

Types

This section is empty.

Jump to

Keyboard shortcuts

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