Skip to content

Display

provide.foundation.eventsets.display

TODO: Add module docstring.

Classes

Functions

show_event_matrix

show_event_matrix() -> None

Display the active event set configuration to the console. Shows all registered event sets and their field mappings.

Source code in provide/foundation/eventsets/display.py
def show_event_matrix() -> None:
    """Display the active event set configuration to the console.
    Shows all registered event sets and their field mappings.
    """
    # Ensure event sets are discovered
    discover_event_sets()

    registry = get_registry()
    resolver = get_resolver()

    # Force resolution to ensure everything is loaded
    resolver.resolve()

    lines: list[str] = ["Foundation Event Sets: Active Configuration"]
    lines.append("=" * 70)

    # Show registered event sets
    event_sets = registry.list_event_sets()
    _format_registered_event_sets(event_sets, lines)

    lines.append("\n" + "=" * 70)

    # Show resolved state
    _format_resolver_state(resolver, lines)

    # Log the complete display
    log.info("\n".join(lines))