Show config.
(self)
| 482 | console.print("\n[bold green]✓ Done![/bold green]\n") |
| 483 | |
| 484 | def _show_config(self): |
| 485 | """Show config.""" |
| 486 | config = self.cache_manager.get_config() |
| 487 | |
| 488 | console.print(f"\n[cyan]Configuration:[/cyan]") |
| 489 | console.print(f" API key: {'✓ Set' if config.get('openrouter_api_key') else '✗ Not set'}") |
| 490 | console.print(f" Cache: {self.cache_manager.count_cached_kernels()} kernels\n") |
| 491 | |
| 492 | questions = [ |
| 493 | inquirer.Confirm('update', message="Update API key?", default=False) |
| 494 | ] |
| 495 | answers = inquirer.prompt(questions) |
| 496 | |
| 497 | if answers and answers['update']: |
| 498 | self._setup_api_key() |
| 499 | |
| 500 | def _setup_api_key(self): |
| 501 | """Setup API key.""" |
no test coverage detected