Expand description
JSON configuration file CRUD operations. JSON configuration file CRUD operations.
This module provides low-level functions for reading, writing, and manipulating JSON configuration files with dot-delimited path navigation.
Structs§
- Worktree
Template Defaults - Resolved defaults used when rendering worktree-aware templates.
Functions§
- is_
valid_ integration_ mode - Validate that an integration mode string is one of the supported values.
- is_
valid_ worktree_ strategy - Validate that a worktree strategy string is one of the supported values.
- json_
get_ path - Navigate a JSON object by a slice of path parts, returning the value if found.
- json_
set_ path - Set a value at a dot-delimited path in a JSON object, creating intermediate objects as needed.
- json_
split_ path - Split a dot-delimited config key path into parts, trimming and filtering empty segments.
- json_
unset_ path - Remove a key at a dot-delimited path in a JSON object.
- parse_
json_ value_ arg - Parse a CLI argument as a JSON value, falling back to a string if parsing fails.
- read_
json_ config - Read a JSON config file, returning an empty object if the file doesn’t exist.
- resolve_
worktree_ template_ defaults - Resolve effective worktree defaults from cascading project configuration.
- validate_
config_ value - Validate a config value for known keys that require enum values.
- write_
json_ config - Write a JSON value to a config file (pretty-printed with trailing newline).