mirror of
https://github.com/ollama/ollama.git
synced 2025-05-10 18:06:33 +02:00
set non-zero error code on error
This commit is contained in:
parent
2ab20095b3
commit
76b85bc0e9
2 changed files with 25 additions and 4 deletions
3
main.go
3
main.go
|
@ -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()))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue