MCPcopy Index your code
hub / github.com/augmentable-dev/tickgit / handleError

Function handleError

cmd/tickgit/commands/root.go:11–22  ·  view source on GitHub ↗

TODO clean this up

(err error, spinner *spinner.Spinner)

Source from the content-addressed store, hash-verified

9
10// TODO clean this up
11func handleError(err error, spinner *spinner.Spinner) {
12 if err != nil {
13 if spinner != nil {
14 // spinner.Suffix = ""
15 spinner.FinalMSG = err.Error()
16 spinner.Stop()
17 } else {
18 fmt.Println(err)
19 }
20 os.Exit(1)
21 }
22}
23
24// Execute adds all child commands to the root command and sets flags appropriately.
25func Execute() {

Callers 2

validateDirFunction · 0.85
todos.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected