build_tools.tui_common.services
Shared Services for Textual-based TUIs.
This module provides backend services for configuration management, keybinding loading, and other non-UI functionality.
Available Services:
KeybindingConfig- Dataclass holding keybinding configurationload_keybindings()- Load keybindings from TOML with defaultsdetect_conflicts()- Validate keybindings for conflicts
Configuration Pattern:
from build_tools.tui_common.services import load_keybindings
# Load from default location (~/.config/pipeworks_tui/keybindings.toml)
config = load_keybindings()
# Get primary key for an action
quit_key = config.get_primary_key("global", "quit") # "q"
# Get display-friendly key name
quit_display = config.get_display_key("global", "quit") # "q"