INNER CODE UNIT · Python
navigate
ahembree/ansible-hms-docker · settings_manager.py:315
def navigate(root_data, current_data, path, file_path):
"""
Navigate through YAML structure and edit values.
Args:
root_data: The root YAML document (always saved)
current_data: Current position in the structure
path: List of keys showing current location
file_path: Path to YAML file
"""
while True:
choice_map = {}
display_choices = []
# Build menu based on current data type
if isinstance(current_data, (dict, CommentedMap)):
for k, v in current_data.items():
if isinstance(v, (dict, CommentedMap)):