INNER CODE UNIT · Python
status
nirholas/XActions · python/xeepy/cli/main.py:135
def status(ctx: click.Context) -> None:
"""Show current status and configuration."""
console = ctx.obj["console"]
config = ctx.obj["config"]
console.print("\n[bold blue]Xeepy Status[/bold blue]\n")
# Config status
table = Table(title="Configuration")
table.add_column("Setting", style="cyan")
table.add_column("Value", style="green")
table.add_row("Config file", str(config.get("_path", "Not found")))
table.add_row("AI Provider", config.get("ai", {}).get("provider", "Not configured"))
table.add_row("Rate limit", f"{config.get('rate_limit', {}).get('requests_per_minute', 60)}/min")
console.print(table)
console.print()