chore: rename StartReturningModel to Run

Added aliases for the old functions, but deprecated them.
This commit is contained in:
Christian Muehlhaeuser
2022-10-07 23:56:12 +02:00
parent 22d15efad7
commit 6b77c8fc10
47 changed files with 66 additions and 56 deletions

View File

@@ -140,7 +140,7 @@ func main() {
}
}
if err := tea.NewProgram(newModel()).Start(); err != nil {
if _, err := tea.NewProgram(newModel()).Run(); err != nil {
fmt.Printf("Could not start program :(\n%v\n", err)
os.Exit(1)
}