Add details editing
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
package pages
|
||||
|
||||
import tea "github.com/charmbracelet/bubbletea"
|
||||
import (
|
||||
"tasksquire/taskwarrior"
|
||||
"time"
|
||||
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
)
|
||||
|
||||
type UpdatedTasksMsg struct{}
|
||||
|
||||
@ -67,3 +72,13 @@ func changeMode(mode mode) tea.Cmd {
|
||||
}
|
||||
|
||||
type changeModeMsg mode
|
||||
|
||||
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