This commit is contained in:
2026-01-11 01:14:45 -08:00
parent 61ab690604
commit f4283759e1
6 changed files with 7 additions and 91 deletions

View File

@@ -81,27 +81,7 @@ def show_provider_config_panel(
config_hint: str = "config.conf"
) -> None:
"""Show a Rich panel explaining how to configure a provider."""
normalized = str(provider_name or "").strip() or "provider"
pre = Text("Add this to your config", style="bold")
footer = Text(
f"Place this block in {config_hint} or config.d/*.conf",
style="dim"
)
body = Text()
body.append(f"[provider={normalized}]\n", style="bold cyan")
for key in keys or []:
body.append(f'{key}=""\n', style="yellow")
stderr_console().print(pre)
stderr_console().print(
Panel(
body,
title=f"{normalized} configuration",
expand=False
)
)
stderr_console().print(footer)
pass
def show_store_config_panel(
@@ -111,25 +91,5 @@ def show_store_config_panel(
config_hint: str = "config.conf"
) -> None:
"""Show a Rich panel explaining how to configure a storage backend."""
normalized = str(store_type or "").strip().lower() or "store"
pre = Text("Add this to your config", style="bold")
footer = Text(
f"Place this block in {config_hint} or config.d/*.conf",
style="dim"
)
body = Text()
body.append(f"[store={normalized}]\n", style="bold cyan")
for key in keys or []:
body.append(f'{key}=""\n', style="yellow")
stderr_console().print(pre)
stderr_console().print(
Panel(
body,
title=f"{normalized} storage configuration",
expand=False
)
)
stderr_console().print(footer)
pass