MCPcopy Index your code
hub / github.com/create-go-app/cli / ShowError

Function ShowError

pkg/cgapp/utils.go:43–45  ·  view source on GitHub ↗

ShowError function for send error message to output.

(text string)

Source from the content-addressed store, hash-verified

41
42// ShowError function for send error message to output.
43func ShowError(text string) error {
44 return fmt.Errorf("%s%s", colorizeLevel("error"), text)
45}
46
47// CalculateDurationTime func to calculate duration time.
48func CalculateDurationTime(startTimer time.Time) string {

Callers 6

runCreateCmdFunction · 0.92
runDeployCmdFunction · 0.92
CopyFromEmbeddedFSFunction · 0.85
GenerateFileFromTemplateFunction · 0.85
GitCloneFunction · 0.85
ExecCommandFunction · 0.85

Calls 1

colorizeLevelFunction · 0.85

Tested by

no test coverage detected