Del: Update

This commit is contained in:
2026-10-13 13:32:03 +00:00
parent e329e567cf
commit 5b485f3452
-40
View File
@@ -1,40 +0,0 @@
// Nebara OS TUI — Visual Baseline v0.1
// Native terminal management interface for the Nebara S3GX Appliance.
//
// Usage:
//
// go run ./cmd/nebara-tui [--mock-state=warning|normal]
package main
import (
"flag"
"fmt"
"os"
"github.com/nebara/nebara-os/internal/app"
"github.com/nebara/nebara-os/internal/mock"
)
func main() {
stateFlag := flag.String("mock-state", "warning", "Mock state to display: 'warning' or 'normal'")
flag.Parse()
var s mock.State
switch *stateFlag {
case "normal":
s = mock.NormalState()
case "warning":
s = mock.WarningState()
default:
fmt.Fprintf(os.Stderr, "Unknown mock state %q. Use 'warning' or 'normal'.\n", *stateFlag)
os.Exit(1)
}
appState := app.NewStateFromMock(s)
application := app.NewApplication(appState)
if err := application.Run(); err != nil {
fmt.Fprintf(os.Stderr, "fatal: %v\n", err)
os.Exit(1)
}
}