lmcli/pkg/cli/cli.go
Matt Low 04478cbbd1 Refactor store and config handling
- Moved global `store` and `config` variables to cli.go
- Add Fatal() function for outputting an error and exiting
2023-11-04 14:22:16 -06:00

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)
}