ficsit-cli-flake/tea/utils/tick.go
2021-12-02 06:00:33 +02:00

15 lines
214 B
Go

package utils
import (
"time"
tea "github.com/charmbracelet/bubbletea"
)
type TickMsg struct{}
func Ticker() tea.Cmd {
return tea.Tick(time.Millisecond*50, func(time.Time) tea.Msg {
return TickMsg{}
})
}