Documentation
¶
Overview ¶
Package render provides the render.markdown stream operator, which reformats FileContent into a single Markdown document. The editor option selects the framing (markdown, zed, claude, fold).
Typical use:
fs.walk -> fs.filter:ext="go" -> fs.read -> render.markdown:editor="zed" -> out.file:path="context.md"
Index ¶
Constants ¶
View Source
const ID = "render"
Variables ¶
This section is empty.
Functions ¶
func Markdown ¶
func Markdown(cfg Config) action.StreamOp[fs.FileContent, fs.FileContent]
Markdown concatenates every file into a single Markdown stream. Each file's Content is replaced with its formatted representation; FileMeta is preserved so downstream stages can still inspect paths.
func MarkdownOperator ¶
func MarkdownOperator() action.NamedOperator
Types ¶
type Config ¶
type Config struct {
// Editor selects the framing: "markdown" (default), "zed", "claude",
// or "fold" (details/summary).
Editor string `json:"editor" cli:"editor,e"`
NoHeader bool `json:"no_header" cli:"no_header"`
Prompt string `json:"prompt" cli:"prompt"`
}
Config controls render.markdown.
Click to show internal directories.
Click to hide internal directories.