prompt

package
v7.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 13 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ResponseTypeAbort stands for the user choosing to abort the unfinished run state
	ResponseTypeAbort = "abort"
	// ResponseTypeContinue stands for the user choosing to continue the unfinished run state
	ResponseTypeContinue = "continue"
	// ResponseTypeDiscard stands for the user choosing to discard the unfinished run state
	ResponseTypeDiscard = "discard"
	// ResponseTypeQuit stands for the user choosing to quit the program
	ResponseTypeQuit = "quit"
	// ResponseTypeSkip stands for the user choosing to continue the unfinished run state by skipping the current branch
	ResponseTypeSkip = "skip"
)

Functions

func AskForBranchAncestry

func AskForBranchAncestry(branchName, defaultBranchName string)

AskForBranchAncestry prompts the user for all unknown ancestors of the given branch

func AskForBranchParent

func AskForBranchParent(branchName, defaultBranchName string) string

AskForBranchParent prompts the user for the parent of the given branch

func AskHowToHandleUnfinishedRunState

func AskHowToHandleUnfinishedRunState(command, endBranch string, endTime time.Time, canSkip bool) string

AskHowToHandleUnfinishedRunState prompts the user for how to handle the unfinished run state

func ConfigureMainBranch

func ConfigureMainBranch()

ConfigureMainBranch has the user to confgure the main branch

func ConfigurePerennialBranches

func ConfigurePerennialBranches()

ConfigurePerennialBranches has the user to confgure the perennial branches

func EnsureIsConfigured

func EnsureIsConfigured()

EnsureIsConfigured has the user to confgure the main branch and perennial branches if needed

func EnsureKnowsParentBranches

func EnsureKnowsParentBranches(branchNames []string)

EnsureKnowsParentBranches asserts that the entire ancestry for all given branches is known to Git Town. Missing ancestry information is queried from the user.

func GetSquashCommitAuthor

func GetSquashCommitAuthor(branchName string) string

GetSquashCommitAuthor gets the author of the supplied branch. If the branch has more than one author, the author is queried from the user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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