INNER CODE UNIT · Python
main
ahembree/ansible-hms-docker · settings_manager.py:471
def main():
print("🔧 YAML Configuration Editor\n")
files_full = get_yaml_files()
if not files_full:
print(f"❌ No YAML files found in {YAML_DIR}.")
return
files_map = {os.path.splitext(os.path.basename(f))[0]: f for f in files_full}
sorted_names = sorted(files_map.keys())
while True:
display_choices = ["🔍 Search Across All Files"]
display_choices.extend([f"📄 {name}" for name in sorted_names])
display_choices.append("🚪 Exit")
choice_map = {"🔍 Search Across All Files": "__search__"}
choice_map.update({f"📄 {name}": name for name in sorted_names})