findProjectEntry searches for a project by ID in the registry entries.
(entries []GlobalProjectEntry, id string)
| 287 | |
| 288 | // findProjectEntry searches for a project by ID in the registry entries. |
| 289 | func 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. |
| 299 | func resolveProjectTaskDir(projectPath string) (string, error) { |
no outgoing calls
no test coverage detected