display
code_context_agent.display ¶
Rich display utilities for code-context-agent.
This module provides display functions using Rich for beautiful terminal output. It includes utilities for rendering markdown content, tables, and styled text.
Example
from code_context_agent.config import get_settings from code_context_agent.display import display_welcome settings = get_settings() display_welcome(settings)
create_settings_table ¶
Create a Rich Table displaying the current settings.
Builds a formatted table showing all configuration values with their current settings for easy visual inspection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings | Settings | The Settings instance containing configuration values. | required |
Returns:
| Type | Description |
|---|---|
Table | A Rich Table object ready for console display. |
Example
from code_context_agent.config import Settings settings = Settings(debug=True) table = create_settings_table(settings) console.print(table)
Source code in src/code_context_agent/display.py
display_welcome ¶
Display the welcome message with current settings.
Renders the welcome markdown content followed by a table showing the current configuration settings. This provides users with immediate feedback about the application state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings | Settings | The Settings instance containing configuration values. | required |
Example
from code_context_agent.config import get_settings settings = get_settings() display_welcome(settings)