add
This commit is contained in:
25
moltbot/installer/main.go
Normal file
25
moltbot/installer/main.go
Normal 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/")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user