Documentation
¶
Index ¶
- Constants
- Variables
- func BinPaths() *[]string
- func CheckAndExit(err error)
- func CheckErr(err error) bool
- func CheckGitProject()
- func CheckOS()
- func CheckRoot()
- func CheckStagedFiles() bool
- func Checkout(prefix consts.CommitType, branch string)
- func GetCurrentBranch() string
- func GetLastCommitInfo() *[]string
- func Install()
- func MustExec(name string, arg ...string)
- func MustExecNoOut(name string, arg ...string)
- func MustExecRtOut(name string, arg ...string) string
- func OSEditInput() string
- func Push()
- func Rebase(sourceBranch string, targetBranch string)
- func TryExec(name string, arg ...string) error
- func Uninstall()
Constants ¶
View Source
const InstallBaseDir = "/usr/local/bin"
Variables ¶
View Source
var CurrentDir string
View Source
var CurrentPath string
View Source
var GitCMHookPath string
View Source
var GitFlowToolKitHome string
View Source
var HooksPath string
View Source
var InstallPath string
View Source
var WorkingDir string
Functions ¶
func CheckAndExit ¶
func CheckAndExit(err error)
func CheckGitProject ¶
func CheckGitProject()
func CheckStagedFiles ¶
func CheckStagedFiles() bool
func Checkout ¶
func Checkout(prefix consts.CommitType, branch string)
func GetCurrentBranch ¶
func GetCurrentBranch() string
func GetLastCommitInfo ¶
func GetLastCommitInfo() *[]string
func MustExecNoOut ¶
func MustExecRtOut ¶
func OSEditInput ¶
func OSEditInput() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.