MCPcopy Create free account
hub / github.com/driangle/taskmd / findProjectEntry

Function findProjectEntry

apps/cli/internal/cli/root.go:289–296  ·  view source on GitHub ↗

findProjectEntry searches for a project by ID in the registry entries.

(entries []GlobalProjectEntry, id string)

Source from the content-addressed store, hash-verified

287
288// findProjectEntry searches for a project by ID in the registry entries.
289func findProjectEntry(entries []GlobalProjectEntry, id string) (GlobalProjectEntry, bool) {
290 for _, e := range entries {
291 if e.ID == id {
292 return e, true
293 }
294 }
295 return GlobalProjectEntry{}, false
296}
297
298// resolveProjectTaskDir loads the project's .taskmd.yaml and returns the task directory.
299func resolveProjectTaskDir(projectPath string) (string, error) {

Callers 2

buildResolveProjectFunction · 0.85
resolveProjectDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected