lmcli/pkg/cli/cli.go

33 lines
423 B
Go
Raw Normal View History

package cli
import (
"fmt"
"os"
)
var config *Config
var store *Store
func init() {
var err error
config, err = NewConfig()
if err != nil {
Fatal("%v\n", err)
}
store, err = NewStore()
if err != nil {
Fatal("%v\n", err)
}
}
func Fatal(format string, args ...any) {
fmt.Fprintf(os.Stderr, format, args...)
os.Exit(1)
}
2023-11-05 01:41:43 -06:00
func Warn(format string, args ...any) {
fmt.Fprintf(os.Stderr, format, args...)
}