util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 BinPaths

func BinPaths() *[]string

func CheckAndExit

func CheckAndExit(err error)

func CheckErr

func CheckErr(err error) bool

func CheckGitProject

func CheckGitProject()

func CheckOS added in v0.0.2

func CheckOS()

func CheckRoot

func CheckRoot()

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 Install

func Install()

func MustExec

func MustExec(name string, arg ...string)

func MustExecNoOut

func MustExecNoOut(name string, arg ...string)

func MustExecRtOut

func MustExecRtOut(name string, arg ...string) string

func OSEditInput

func OSEditInput() string

func Push added in v0.0.2

func Push()

func Rebase

func Rebase(sourceBranch string, targetBranch string)

func TryExec

func TryExec(name string, arg ...string) error

func Uninstall

func Uninstall()

Types

This section is empty.

Jump to

Keyboard shortcuts

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