INNER CODE UNIT · Python

display_search_results

ahembree/ansible-hms-docker · settings_manager.py:210

def display_search_results(results):
    """Display search results and allow user to select one to edit."""
    if not results:
        print("❌ No results found.")
        return None

    print(f"\n✅ Found {len(results)} result(s):\n")

    # Build display choices
    display_choices = []
    choice_map = {}

    for i, result in enumerate(results):
        file = result['file']
        path = ' → '.join(str(p) for p in result['path'])
        value = str(result['value'])
        if len(value) > 60:
            value = value[:57] + "..."

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…