feat(util): add util command to print GGUF informations (#2528)

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2024-06-09 19:27:42 +02:00 committed by GitHub
parent 6c087ae743
commit d7e137295a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 45 additions and 3 deletions

View file

@ -42,7 +42,7 @@ func main() {
for _, envFile := range envFiles {
if _, err := os.Stat(envFile); err == nil {
log.Info().Str("envFile", envFile).Msg("loading environment variables from file")
log.Info().Str("envFile", envFile).Msg("env file found, loading environment variables from file")
err = godotenv.Load(envFile)
if err != nil {
log.Error().Err(err).Str("envFile", envFile).Msg("failed to load environment variables from file")
@ -117,6 +117,7 @@ Version: ${version}
// Run the thing!
err = ctx.Run(&cli.CLI.Context)
ctx.FatalIfErrorf(err)
if err != nil {
log.Fatal().Err(err).Msg("Error running the application")
}
}