19 lines
267 B
Go
19 lines
267 B
Go
package common
|
|
|
|
import (
|
|
"tasksquire/internal/taskwarrior"
|
|
"time"
|
|
|
|
tea "charm.land/bubbletea/v2"
|
|
)
|
|
|
|
type TaskMsg taskwarrior.Tasks
|
|
|
|
type TickMsg time.Time
|
|
|
|
func DoTick() tea.Cmd {
|
|
return tea.Tick(time.Second, func(t time.Time) tea.Msg {
|
|
return TickMsg(t)
|
|
})
|
|
}
|