MCPcopy Create free account
hub / github.com/go-task/task / hasDefaultTaskfile

Function hasDefaultTaskfile

init.go:43–50  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

41}
42
43func hasDefaultTaskfile(dir string) bool {
44 for _, name := range taskfile.DefaultTaskfiles {
45 if _, err := os.Stat(filepathext.SmartJoin(dir, name)); err == nil {
46 return true
47 }
48 }
49 return false
50}

Callers 1

InitTaskfileFunction · 0.85

Calls 1

SmartJoinFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…