internal/

directory
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2026 License: MIT

Directories

Path Synopsis
Package config loads vp.yaml and resolves affected components.
Package config loads vp.yaml and resolves affected components.
Package git wraps git diff for change detection.
Package git wraps git diff for change detection.
Package output formats command output as plain text or JSON.
Package output formats command output as plain text or JSON.
Package plan loads, resolves, and writes plan files under .version-plans/.
Package plan loads, resolves, and writes plan files under .version-plans/.
Package semver wraps Masterminds/semver/v3 with bump and collapse helpers.
Package semver wraps Masterminds/semver/v3 with bump and collapse helpers.
Package version exposes the vp binary's version string.
Package version exposes the vp binary's version string.
Package versionfile reads and surgically writes version files (json, yaml, toml, text).
Package versionfile reads and surgically writes version files (json, yaml, toml, text).
json
Package json reads and surgically writes JSON version files using the validate-then-splice approach from ADR-0002: walk the dotted path with encoding/json, capture the leaf string value's byte span, and splice only those bytes — never round-tripping the document.
Package json reads and surgically writes JSON version files using the validate-then-splice approach from ADR-0002: walk the dotted path with encoding/json, capture the leaf string value's byte span, and splice only those bytes — never round-tripping the document.
text
Package text reads and writes whole-file plain-text version files.
Package text reads and writes whole-file plain-text version files.
toml
Package toml reads and surgically writes TOML version files using the validate-then-splice approach from ADR-0002: parse with the pelletier/go-toml/v2/unstable position-aware parser, walk top-level expressions to the target dotted key path, and splice only the leaf string's inner byte span — never round-tripping the document.
Package toml reads and surgically writes TOML version files using the validate-then-splice approach from ADR-0002: parse with the pelletier/go-toml/v2/unstable position-aware parser, walk top-level expressions to the target dotted key path, and splice only the leaf string's inner byte span — never round-tripping the document.
yaml
Package yaml reads and surgically writes YAML version files using the validate-then-splice approach from ADR-0002: parse the document into a yaml.Node tree, walk the dotted path, and splice the leaf scalar's byte span — never round-tripping the document through yaml.Marshal.
Package yaml reads and surgically writes YAML version files using the validate-then-splice approach from ADR-0002: parse the document into a yaml.Node tree, walk the dotted path, and splice the leaf scalar's byte span — never round-tripping the document through yaml.Marshal.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL