MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / ParseMarkdownPRD

Function ParseMarkdownPRD

internal/prd/markdown.go:29–36  ·  view source on GitHub ↗

ParseMarkdownPRD reads and parses a PRD markdown file from the given path.

(path string)

Source from the content-addressed store, hash-verified

27
28// ParseMarkdownPRD reads and parses a PRD markdown file from the given path.
29func ParseMarkdownPRD(path string) (*PRD, error) {
30 data, err := os.ReadFile(path)
31 if err != nil {
32 return nil, fmt.Errorf("failed to read PRD file: %w", err)
33 }
34
35 return ParseMarkdownPRDFromString(string(data))
36}
37
38// ParseMarkdownPRDFromString parses a PRD from a markdown string.
39func ParseMarkdownPRDFromString(content string) (*PRD, error) {

Callers 7

RunNewFunction · 0.92
RunEditFunction · 0.92
TestMigrateFromJSONFunction · 0.85
LoadPRDFunction · 0.85

Calls 1