MCPcopy Create free account
hub / github.com/caarlos0/tasktimer / updateProjectTimerCmd

Function updateProjectTimerCmd

internal/ui/project_timer.go:40–44  ·  view source on GitHub ↗
(tasks []model.Task)

Source from the content-addressed store, hash-verified

38}
39
40func updateProjectTimerCmd(tasks []model.Task) tea.Cmd {
41 return func() tea.Msg {
42 return projectTimerUpdateMsg{tasks}
43 }
44}
45
46func sumTasksTimes(tasks []model.Task, since time.Time) time.Duration {
47 d := time.Duration(0)

Callers 1

UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected