MCPcopy Create free account
hub / github.com/alecthomas/devtodo2 / consoleDisplayTask

Function consoleDisplayTask

consoleview.go:133–146  ·  view source on GitHub ↗
(width, depth int, task Task, options *ViewOptions)

Source from the content-addressed store, hash-verified

131}
132
133func consoleDisplayTask(width, depth int, task Task, options *ViewOptions) {
134 if depth >= 0 && (!options.ShowAll && !task.CompletionTime().IsZero()) {
135 return
136 }
137 if depth >= 0 {
138 formatTask(width, depth, task, options)
139 }
140 if !options.Summarise {
141 view := CreateTaskView(task, options)
142 for i := 0; i < view.Len(); i++ {
143 consoleDisplayTask(width, depth+1, view.At(i), options)
144 }
145 }
146}
147
148type ConsoleView struct{}
149

Callers 1

ShowTreeMethod · 0.85

Calls 5

formatTaskFunction · 0.85
CreateTaskViewFunction · 0.85
CompletionTimeMethod · 0.65
LenMethod · 0.65
AtMethod · 0.65

Tested by

no test coverage detected