MCPcopy
hub / github.com/go-task/task / PrintTasks

Function PrintTasks

internal/summary/summary.go:12–19  ·  view source on GitHub ↗
(l *logger.Logger, t *ast.Taskfile, c []string)

Source from the content-addressed store, hash-verified

10)
11
12func PrintTasks(l *logger.Logger, t *ast.Taskfile, c []string) {
13 for i, call := range c {
14 PrintSpaceBetweenSummaries(l, i)
15 if task, ok := t.Tasks.Get(call); ok {
16 PrintTask(l, task)
17 }
18 }
19}
20
21func PrintSpaceBetweenSummaries(l *logger.Logger, i int) {
22 spaceRequired := i > 0

Callers 1

TestPrintAllWithSpacesFunction · 0.92

Calls 3

PrintTaskFunction · 0.85
GetMethod · 0.45

Tested by 1

TestPrintAllWithSpacesFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…