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

Function findProjectsSequence

apps/cli/internal/cli/project_registry.go:222–229  ·  view source on GitHub ↗

findProjectsSequence locates the "projects" sequence node in the mapping. Returns nil if not found.

(mapping *yaml.Node)

Source from the content-addressed store, hash-verified

220// findProjectsSequence locates the "projects" sequence node in the mapping.
221// Returns nil if not found.
222func findProjectsSequence(mapping *yaml.Node) *yaml.Node {
223 for i := 0; i < len(mapping.Content)-1; i += 2 {
224 if mapping.Content[i].Value == "projects" {
225 return mapping.Content[i+1]
226 }
227 }
228 return nil
229}
230
231// extractProjectEntries reads all project entries from the document.
232func extractProjectEntries(doc *yaml.Node) []GlobalProjectEntry {

Callers 3

extractProjectEntriesFunction · 0.85
appendProjectNodeFunction · 0.85
removeProjectNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected