first draft of miasma installer

This commit is contained in:
tumillanino
2025-10-18 17:13:02 +11:00
commit 8f054b63a1
8 changed files with 335 additions and 0 deletions

25
main.go Normal file
View File

@@ -0,0 +1,25 @@
package main
import (
"fmt"
"miasma-installer/tui"
"os"
tea "github.com/charmbracelet/bubbletea"
)
func main() {
p := tea.NewProgram(tui.NewModel(), tea.WithAltScreen())
if _, err := p.Run(); err != nil {
fmt.Printf("An error has occured during installation: %v\n", err)
os.Exit(1)
}
finalModel, _ := p.Run()
if root, ok := finalModel.(tui.RootModel); ok {
if root.State == tui.StateFinished {
fmt.Println("\nMiasma OS Installation Complete! Please reboot.")
}
}
}