set non-zero error code on error

This commit is contained in:
Michael Yang 2023-08-14 11:15:53 -07:00
parent 2ab20095b3
commit 76b85bc0e9
2 changed files with 25 additions and 4 deletions

View file

@ -4,8 +4,9 @@ import (
"context"
"github.com/jmorganca/ollama/cmd"
"github.com/spf13/cobra"
)
func main() {
cmd.NewCLI().ExecuteContext(context.Background())
cobra.CheckErr(cmd.NewCLI().ExecuteContext(context.Background()))
}