Documentation
¶
Overview ¶
Package plans handles arc-owned design-spec markdown frontmatter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoFrontmatter = errors.New("no frontmatter status line")
ErrNoFrontmatter is returned when a file has no frontmatter or no status line.
Functions ¶
func EnsureFrontmatter ¶
func EnsureFrontmatter(path string, meta Frontmatter) error
EnsureFrontmatter idempotently writes the arc-owned frontmatter block, preserving body. Atomic.
Types ¶
type Frontmatter ¶
type Frontmatter struct {
Title string `yaml:"title"`
Date string `yaml:"date"`
Project string `yaml:"project"`
Status string `yaml:"status"`
Tags []string `yaml:"tags"`
ArcReview ArcReview `yaml:"arc_review"`
}
func ReadFrontmatter ¶
func ReadFrontmatter(b []byte) (fm Frontmatter, body []byte, ok bool, err error)
ReadFrontmatter parses a leading --- block. ok=false if absent (legacy doc).
Click to show internal directories.
Click to hide internal directories.