k
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user