Documentation
¶
Overview ¶
Package md parses frontmatter for agent configs.
Index ¶
- func Body(content string) string
- func BuildApplyToFrontmatter(globs []string) string
- func BuildPathsFrontmatter(globs []string) string
- func ParseApplyTo(content string) ([]string, error)
- func ParsePaths(content string) ([]string, error)
- func SplitFrontmatter(content string) (string, string, bool)
- func StripGeneratedHeader(body string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildApplyToFrontmatter ¶
BuildApplyToFrontmatter builds an applyTo frontmatter block.
func BuildPathsFrontmatter ¶
BuildPathsFrontmatter builds a paths frontmatter block.
func ParseApplyTo ¶
ParseApplyTo extracts glob patterns from frontmatter.
func ParsePaths ¶
ParsePaths extracts the paths list from frontmatter.
func SplitFrontmatter ¶
SplitFrontmatter separates frontmatter from the body.
func StripGeneratedHeader ¶
StripGeneratedHeader removes a leading generated header.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.