mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 11:09:17 -07:00
chore: rename StartReturningModel to Run
Added aliases for the old functions, but deprecated them.
This commit is contained in:
@@ -37,7 +37,7 @@ var helpStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#626262")).Render
|
||||
func main() {
|
||||
prog := progress.New(progress.WithScaledGradient("#FF7CCB", "#FDFF8C"))
|
||||
|
||||
if err := tea.NewProgram(model{progress: prog}).Start(); err != nil {
|
||||
if _, err := tea.NewProgram(model{progress: prog}).Run(); err != nil {
|
||||
fmt.Println("Oh no!", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user