cli

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppGo        = "go"
	AppGoImports = "goimports"
)
View Source
const (
	AppNPM = "npm"
	AppNPX = "npx"
)
View Source
const (
	AppDocker = "docker"
)
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 DockerVer

func DockerVer() (string, error)

func GitAdd

func GitAdd(dir string, files []string) error

func GitCommit

func GitCommit(dir string, msgType CommitType, msg string) error

func GitInit

func GitInit(dir string) error

func GitRepoVersion

func GitRepoVersion(repo string) (string, error)

func GitSetupDefault

func GitSetupDefault(dir, repo string) error

GitSetupDefault will create .git folder mod master branch to main and create the init commit

func GitVer

func GitVer() (string, error)

func GoBuild

func GoBuild(mainPath, buildArch, buildOS string) error

func GoClean

func GoClean(filePath string) error

func GoFmt

func GoFmt(fPath string) error

func GoGet

func GoGet(dir, pkg string) error

func GoImports

func GoImports(fPath string) error

func GoInstall

func GoInstall(pkg string) error

func GoModVer

func GoModVer() (string, error)

func GoRun

func GoRun(mainPath string) error

func GoTidy

func GoTidy(dir string) error

func GoVer

func GoVer() (string, error)

func GoVet

func GoVet(fPath string) error

func JsFmt

func JsFmt(fPath string) error

func Lookup

func Lookup(cmd string) bool

Lookup check if an app is available in CLI

func NPMVer

func NPMVer() (string, error)

func Shell

func Shell() string

Types

type CommitType

type CommitType string

CommitType data type to ensure commitizen style guids https://github.com/commitizen-tools/commitizen

Jump to

Keyboard shortcuts

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