1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 19:09:43 +00:00

refactor: replace deprecated Start with Run

This commit is contained in:
Oleksandr Redko
2026-01-06 11:41:35 +02:00
parent 62ef283943
commit 80757ec074
2 changed files with 2 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ func animTickWithSpeed(cpuUsage float64) tea.Cmd {
func main() {
p := tea.NewProgram(newModel(), tea.WithAltScreen())
if err := p.Start(); err != nil {
if _, err := p.Run(); err != nil {
fmt.Fprintf(os.Stderr, "system status error: %v\n", err)
os.Exit(1)
}