feat: exit gracefully
parent
279ddecae0
commit
84cf09fc24
3
main.go
3
main.go
|
@ -102,10 +102,7 @@ func main() {
|
||||||
fmtErr := color.New(color.FgRed)
|
fmtErr := color.New(color.FgRed)
|
||||||
fmtErr.Printf("[%s error]: ", name)
|
fmtErr.Printf("[%s error]: ", name)
|
||||||
fmt.Printf("%s\n", err.Error())
|
fmt.Printf("%s\n", err.Error())
|
||||||
os.Exit(1)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
os.Exit(0)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type action struct {
|
type action struct {
|
||||||
|
|
Loading…
Reference in New Issue