Documentation ¶
Index ¶
- func AutoTag(level string)
- func CheckForUncommited() bool
- func CheckIfError(err error)
- func CheckIsGitDir() bool
- func ExitIfError(err error)
- func GitExec(addAll, show bool, noSignoff bool, msg string)
- func Info(format string, args ...interface{})
- func Prompt(capitalize bool) string
- func PromptConfirm(msg string) bool
- func TagPrompt() string
- func UndoLastCommit()
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoTag ¶
func AutoTag(level string)
AutoTag creates an annonated tag for the next logical version
func CheckForUncommited ¶
func CheckForUncommited() bool
CheckForUncommited function checks if there are changes that need commit
func CheckIfError ¶
func CheckIfError(err error)
CheckIfError should be used to naively panics if an error is not nil
func CheckIsGitDir ¶
func CheckIsGitDir() bool
CheckIsGitDir function checks is dir inside git worktree
func ExitIfError ¶
func ExitIfError(err error)
ExitIfError exits with status 1 if an error is not nil
func Info ¶
func Info(format string, args ...interface{})
Info should be used to describe the example commands that are about to run.
func PromptConfirm ¶
PromptConfirm is a common function to ask confirm before some action
func UndoLastCommit ¶
func UndoLastCommit()
UndoLastCommit leaves your working tree (the state of your files on disk) unchanged but undoes the commit and leaves the changes you committed unstaged
Types ¶
Click to show internal directories.
Click to hide internal directories.