MCPcopy Index your code
hub / github.com/go-task/task / printTaskDescribingText

Function printTaskDescribingText

internal/summary/summary.go:42–50  ·  view source on GitHub ↗
(t *ast.Task, l *logger.Logger)

Source from the content-addressed store, hash-verified

40}
41
42func printTaskDescribingText(t *ast.Task, l *logger.Logger) {
43 if hasSummary(t) {
44 printTaskSummary(l, t)
45 } else if hasDescription(t) {
46 printTaskDescription(l, t)
47 } else {
48 printNoDescriptionOrSummary(l)
49 }
50}
51
52func hasSummary(t *ast.Task) bool {
53 return t.Summary != ""

Callers 1

PrintTaskFunction · 0.85

Calls 5

hasSummaryFunction · 0.85
printTaskSummaryFunction · 0.85
hasDescriptionFunction · 0.85
printTaskDescriptionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…