Use native bubble table
This commit is contained in:
18
internal/common/messages.go
Normal file
18
internal/common/messages.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user