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

Function taskState

consoleview.go:79–87  ·  view source on GitHub ↗
(task Task)

Source from the content-addressed store, hash-verified

77}
78
79func taskState(task Task) int {
80 if task.Len() != 0 {
81 return '+'
82 }
83 if !task.CompletionTime().IsZero() {
84 return '-'
85 }
86 return ' '
87}
88
89func Fatalf(format string, args ...any) {
90 fmt.Fprintf(os.Stderr, "error: %s\n", fmt.Sprintf(format, args...))

Callers 1

formatTaskFunction · 0.85

Calls 2

LenMethod · 0.65
CompletionTimeMethod · 0.65

Tested by

no test coverage detected