Documentation
¶
Overview ¶
Package writeback commits a <memory> block's content back to the skill repository using go-git. Push-to-remote is a separate method so commit is testable without network.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Path string // relative to repo root
Mode string // "append" | "replace"
Content string
Message string
AuthorName string
AuthorEmail string
}
Options controls a single writeback commit.
type Writer ¶
type Writer struct{}
Writer performs writeback commits and optional pushes.
func (*Writer) Commit ¶
Commit applies the writeback content to `repoRoot/Path`, stages it, and commits. Returns the commit SHA.
Click to show internal directories.
Click to hide internal directories.