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

@@ -200,7 +200,7 @@ The last step is to simply run our program. We pass our initial model to
```go
func main() {
p := tea.NewProgram(initialModel())
if err := p.Start(); err != nil {
if _, err := p.Run(); err != nil {
fmt.Printf("Alas, there's been an error: %v", err)
os.Exit(1)
}