Files
shell/moltbot/installer/main.go
user123 589d1ce2b8 add
2026-01-28 22:18:17 +08:00

26 lines
404 B
Go

package main
import (
"fmt"
"os"
"moltbot-installer/internal/ui"
tea "github.com/charmbracelet/bubbletea"
)
func main() {
p := tea.NewProgram(ui.InitialModel())
m, err := p.Run()
if err != nil {
fmt.Printf("Error starting installer: %v\n", err)
os.Exit(1)
}
if model, ok := m.(ui.Model); ok {
if model.DidStartGateway {
fmt.Println("Web Console: http://127.0.0.1:18789/")
}
}
}