Documentation
¶
Index ¶
- Constants
- Variables
- func GitAdd(dir string, files []string) error
- func GitCommit(dir string, msgType CommitType, msg string) error
- func GitInit(dir string) error
- func GitRepoVersion(repo string) (string, error)
- func GitSetupDefault(dir, repo string) error
- func GitVer() (string, error)
- func GoClean(filePath string) error
- func GoFmt(fPath string) error
- func GoGet(dir, pkg string) error
- func GoImports(fPath string) error
- func GoInstall(pkg string) error
- func GoModVer() (string, error)
- func GoTidy(dir string) error
- func GoVer() (string, error)
- func GoVet(fPath string) error
- func Lookup(cmd string) bool
- func NPMVer() (string, error)
- func Shell() string
- func ShellIs(shell string) bool
- type CommitType
Constants ¶
View Source
const ( AppGo = "go" AppGoImports = "goimports" )
View Source
const ( AppNPM = "npm" AppNPX = "npx" )
View Source
const ( ShellBash = "/bin/bash" ShellZsh = "/bin/zsh" )
View Source
const (
AppGit = "git"
)
Variables ¶
View Source
var ( ErrNotFound = errors.New("dependency not found") ErrGitCommitNotValid = errors.New("git commit flag not valid") ErrGitAddNoFiles = errors.New("git add no files provided") )
View Source
var (
CommitTypes = []CommitType{
"ci",
"feat",
"fix",
"refactor",
"style",
"chore",
"revert",
}
)
Functions ¶
func GitRepoVersion ¶
func GitSetupDefault ¶
GitSetupDefault will create .git folder mod master branch to main and create the init commit
Types ¶
type CommitType ¶
type CommitType string
CommitType data type to ensure commitizen style guids https://github.com/commitizen-tools/commitizen
Click to show internal directories.
Click to hide internal directories.