helpers

package
v0.0.0-...-68fec85 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DEV = "DEV"
View Source
const GoPackageName = "packageName"
View Source
const InitDevBranchName = "INIT_DEV_BRANCH_NAME"
View Source
const InitDevRepoPath = "INIT_DEV_REPO_PATH"
View Source
const ProjectName = "projectName"
View Source
const ProjectNameWithReplacedHyphens = "projectNameReplacedHyphens"
View Source
const TemplatesFilesConfig = "template-files.json"

Variables

View Source
var AppLogger = appLogger{
	// contains filtered or unexported fields
}
View Source
var ErrArgCurrentNotWithPath = errors.New("current cannot be used with path")
View Source
var ErrArgNameRequired = errors.New("the name for the project is not passed")
View Source
var ErrArgTemplateRequired = errors.New("template for the project is required")
View Source
var ErrExecNotFound = errors.New("executable not found in path")
View Source
var ErrInvalidArgName = errors.New("invalid name provided for project")
View Source
var ErrInvalidArgPath = errors.New("invalid path provided for project")
View Source
var ErrInvalidArgTemplate = errors.New("invalid template")

Functions

func MoveDir

func MoveDir(from string, to string, noOverwrite bool) error

func ValidateExpectations

func ValidateExpectations(t *testing.T, name string, actualValue, expectedValue any, actualError, expectedError error, validationFn func(any, any) error)

Types

type Level

type Level int8
const (
	PanicLevel Level = iota
	ErrorLevel
	WarnLevel
	InfoLevel
	DebugLevel
	TraceLevel
)

func GetLevel

func GetLevel(verbosity int) Level

Jump to

Keyboard shortcuts

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