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

Function ParseTaskFile

sdk/go/parser/markdown.go:34–45  ·  view source on GitHub ↗

ParseTaskFile reads and parses a markdown file with YAML frontmatter

(filePath string)

Source from the content-addressed store, hash-verified

32
33// ParseTaskFile reads and parses a markdown file with YAML frontmatter
34func ParseTaskFile(filePath string) (*model.Task, error) {
35 content, err := os.ReadFile(filePath)
36 if err != nil {
37 return nil, &ParseError{
38 FilePath: filePath,
39 Message: "failed to read file",
40 Err: err,
41 }
42 }
43
44 return ParseTaskContent(filePath, content)
45}
46
47// ParseTaskContent parses task content from bytes
48func ParseTaskContent(filePath string, content []byte) (*model.Task, error) {

Callers

nothing calls this directly

Calls 1

ParseTaskContentFunction · 0.85

Tested by

no test coverage detected