summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2026-05-27T8916: add missing descendents along paths in mask_exclusiveJohn Estabrook
2026-05-26T8916: add missing descendents along paths in subtree_from_partialJohn Estabrook
2026-04-16T8488: add read/write to string in 'internal' (yojson) formatJohn Estabrook
In addition to the existing read/write yojson to file, it is useful to have the string representation, for example, for including in config-sync request.
2026-04-16T8488: add utility subtree_from_partialJohn Estabrook
Return the subtree of a configtree indicated by a path that may only be partly defined, lacking some or all intervening tag node value.
2026-04-16T8488: add mask_exclusiveJohn Estabrook
This is the complement to mask_inclusive, for excluding subpaths of a tree, for example, a subtree first isolated by mask_inclusive.
2026-04-16T8488: add utility refpath_from_partialJohn Estabrook
Infer the reference path from a path that may or may not contain intervening tag nodes. Return an empty list on a nonsensical path.
2026-03-11T8269: handle element constraintSilenceOutput in creation of ref treeJohn Estabrook
2026-02-24T8313: add copy and rename to completion op variantJohn Estabrook
2026-02-24T8312: add edit to completion op variantJohn Estabrook
2026-02-06T8232: functions to calculate and render config tree with defaultsJohn Estabrook
2026-02-06T8232: add extended fold over tree function to track levelJohn Estabrook
The function fold_tree_with_path_cont allows the called function to return a list of values, reset at each return to local root. The motivating example is to carry a stack of boolean values to ignore paths below a certain level.
2026-02-06T8232: Config_tree.get_subtree should preserve tag attribute at rootJohn Estabrook
This is useful when walking a subtree of a config tree, as is used in config_dict.
2026-02-06T8232: add util get_subtree for reference_treeJohn Estabrook
This is the direct analogue of Config_tree.get_subtree, a safe wrapper around Vytree.get. Note that the twin functions could easily have been abstracted under Tree_alg, however, for such simple functions the redundancy is preferable.
2026-02-06T8232: simplify return value of fold_tree_with_pathJohn Estabrook
The details do not need to be exposed in the function signature.
2026-01-14T8164: add completion help hints to get_completion_envJohn Estabrook
2026-01-14T8164: add util list_of_string to split on whitespaceJohn Estabrook
2026-01-08Merge pull request #62 from jestabro/misplaced-check-in-completion-envDaniil Baturin
T8156: fix misplaced check for Nonexistent_path in get completion env
2026-01-07T8157: add missed case of vyconf completion, in the absence of valueHelpJohn Estabrook
This is the analogue of the case for cli-shell-api: if the XML element valueHelp does not exist, use the element help.
2026-01-06T8156: fix misplaced check for Nonexistent_path in get completion envJohn Estabrook
2025-12-21T8113: fix logic error in show on tag nodesJohn Estabrook
Due to an unnecessary modification of the path argument, a deleted tag node value will be shown as a deleted tag node: the deletion is processed correctly, but the show annotation is incorrect.
2025-12-19T8109: fix show command on leaf pathJohn Estabrook
Leaf node name/value was not included in output.
2025-12-17T8061: add function get_completion_envJohn Estabrook
2025-12-17T8061: add function get_default_valueJohn Estabrook
2025-12-17T8061: simplify allowed_edit_node with path_typeJohn Estabrook
2025-12-17T8061: extend node_type to path_type for path characteristicsJohn Estabrook
For an arbitrary path, determine if it has the characterists of a configuration path, and return the potential node type, solely in terms of the reference tree. No validation is taking place on values.
2025-12-17T8061: add boolean test for compatibility of path with reference treeJohn Estabrook
2025-12-17T8061: require strict check of existence in refpathJohn Estabrook
For use in reference_path_exists, add strict check in the utility that forms the reference path from a config path.
2025-12-17T8061: add test potential_leaf_value and refine error messagesJohn Estabrook
2025-12-17T8009: fix logic in test potential_tag_valueJohn Estabrook
2025-11-26T8032: add file_compare utility for comparing files up to whitespaceJohn Estabrook
It is useful to have an internal implementation of file_compare (T8031) for use in the vyconf replacement for cli-shell-api sessionUnsaved in shell functions.
2025-11-24T8009: add allowed_edit_level to test necessary conditions on pathJohn Estabrook
2025-11-20T8009: remove unnecessary alert on empty path for refpathJohn Estabrook
2025-11-11T7988: add diff function for show configJohn Estabrook
2025-11-11T7988: enforce lexical-numeric order for option tuple compareJohn Estabrook
The comparison function used to order children in the diff function was unnecessarily general: maintain lexical-numeric ordering of nodes.
2025-11-11T7988: move function flag to util.ml for general useJohn Estabrook
2025-11-11T7988: add util is_sublistJohn Estabrook
2025-11-11T7988: adjust/normalize function namesJohn Estabrook
2025-11-11T7988: change type name to avoid collision with standard result typeJohn Estabrook
2025-11-11T7988: drop Config_diff type as no longer neededJohn Estabrook
This was part of the hybrid adapter interim approach to integration with the legacy backend.
2025-11-11T7988: expose finer grained render commandsJohn Estabrook
We need finer grained access to rendering for the standard 'show' command to show line-by-line diff of running and session configs.
2025-11-03T7915: add compiler alerts and annotationsJohn Estabrook
2025-11-03T7969: add boolean test value_existsJohn Estabrook
2025-11-01T7980: add write_internal_atomic to cache config in presence of readersJohn Estabrook
Add write function for keeping an up to date copy of the active config with unsynchonized read access.
2025-11-01T7980: add module descriptionJohn Estabrook
2025-09-15T7737: add util replace_or_cons for prepending to list if not elementJohn Estabrook
2025-09-15T7737: support for logging of vyconf cfg_opJohn Estabrook
2025-08-13T7718: add revised validate_tree methodJohn Estabrook
2025-08-06T7694: insert paths lexico-numerically in config_tree setJohn Estabrook
This enforces lexico-numerical order on insertion of new paths/tag-node values.
2025-07-18T7605: add string sanitization functions for direct load of config fileJohn Estabrook
It is necessary to escape single backslashes in config files before parsing. In order to restore single/multiple backslashes on render, the functions escape_backslash/unescape_backslash are used when parsing/rendering from the Python side; as we also want to load/save directly with vyconfd, add analogous functions to the library.
2025-07-06T7499: set appropriate permissions on write cacheJohn Estabrook