This commit is contained in:
user123
2026-01-28 22:18:17 +08:00
parent 02cbcc69af
commit 589d1ce2b8
8 changed files with 1264 additions and 13 deletions

25
moltbot/installer/main.go Normal file
View File

@@ -0,0 +1,25 @@
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/")
}
}
}