Documentation
¶
Overview ¶
Package json implements the json file manager: sjson/gjson-based in-place field writes on plain JSON files (package manifests, plugin listings, and similar), configured via `options.set: [{path, from}]`. Unlike marker (comment-annotated) or template (a *.tmpl source rendered to a sibling file), sjson.Set patches only the targeted path and leaves the rest of the document's bytes -- formatting, key order, whitespace -- untouched, so this file must never import "encoding/json" alongside the local "json" package name.
Index ¶
Constants ¶
const Name = "json"
Name is the manager's registry name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct{}
Manager writes locked values into JSON files at configured field paths.
func (Manager) DefaultPaths ¶
DefaultPaths is empty: unlike *.tmpl files or the fixed workflows directory, there is no generically-safe default glob for "JSON files this tool owns" -- the json manager only runs over configured paths.