Matt Low
04478cbbd1
- Moved global `store` and `config` variables to cli.go - Add Fatal() function for outputting an error and exiting
15 lines
197 B
Go
15 lines
197 B
Go
package cli
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
var config = InitializeConfig()
|
|
var store = InitializeStore()
|
|
|
|
func Fatal(format string, args ...any) {
|
|
fmt.Fprintf(os.Stderr, format, args...)
|
|
os.Exit(1)
|
|
}
|