mirror of
https://github.com/ollama/ollama.git
synced 2026-04-23 01:05:47 +02:00
feat: make ollama with no args launch integrations UI
This commit is contained in:
12
cmd/cmd.go
12
cmd/cmd.go
@@ -1826,6 +1826,18 @@ func NewCLI() *cobra.Command {
|
||||
return
|
||||
}
|
||||
|
||||
// If no args, run launch to show interactive app selector
|
||||
if len(args) == 0 {
|
||||
if err := checkServerHeartbeat(cmd, args); err != nil {
|
||||
cobra.CheckErr(err)
|
||||
return
|
||||
}
|
||||
if err := config.RunLaunch(cmd, args, "", false); err != nil {
|
||||
cobra.CheckErr(err)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
cmd.Print(cmd.UsageString())
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user