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

Function recommendForProject

apps/cli/internal/cli/next.go:203–218  ·  view source on GitHub ↗

recommendForProject scans a project and returns recommendations.

(entry GlobalProjectEntry)

Source from the content-addressed store, hash-verified

201
202// recommendForProject scans a project and returns recommendations.
203func recommendForProject(entry GlobalProjectEntry) ([]Recommendation, error) {
204 tasks, err := scanProjectTasks(entry)
205 if err != nil {
206 return nil, err
207 }
208 return next.Recommend(tasks, next.Options{
209 Limit: 0, // get all, we'll limit after merging
210 Filters: nextFilters,
211 QuickWins: nextQuickWins,
212 Critical: nextCritical,
213 Scope: nextScope,
214 ScopeExact: nextExact,
215 Phase: nextPhase,
216 StrictPhases: nextStrictPhases,
217 })
218}
219
220func outputNextAllProjectsTable(recs []ProjectRecommendation) error {
221 if len(recs) == 0 {

Callers 1

collectAllProjectRecsFunction · 0.85

Calls 1

scanProjectTasksFunction · 0.85

Tested by

no test coverage detected