utils

package
v0.5.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateCommand = newCommand
View Source
var CreateDirIfNotExists = createDirIfNotExists
View Source
var FileExists = exists
View Source
var GetCacheDir = getCacheDir
View Source
var GetCacheDirCreateIfNotExists = getCacheDirCreateIfNotExists
View Source
var GetGitRepoHooksDirectory = getHooksDirectory
View Source
var GetGitRepoRootDirectoryPath = getRootDirectoryPath
View Source
var GetGlobalConfigDir = getGlobalConfigDir
View Source
var GetRunnerInfo = getRunnerInfo
View Source
var GetUserConfigDirCreateIfNotExists = getUserConfigDirCreateIfNotExists
View Source
var OsCommand = exec.Command
View Source
var OsIsNotExist = os.IsNotExist
View Source
var OsRead = os.ReadFile
View Source
var OsRemove = os.Remove
View Source
var OsStat = os.Stat
View Source
var OsWrite = os.WriteFile
View Source
var ReadFile = read
View Source
var RemoveFile = remove
View Source
var RunCommand = run
View Source
var RunCommandInDir = runInDir
View Source
var WriteFile = write

Functions

func BuildGitCommitCommandStr

func BuildGitCommitCommandStr(isAutoAdd bool, isSignCommit bool, title string, body string) (string, error)

func Commit

func Commit(commitCommand string)

Types

type Command

type Command interface {
	CombinedOutput() ([]byte, error)
}

Jump to

Keyboard shortcuts

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