MCPcopy Create free account
hub / github.com/RightNow-AI/rightnow-cli / _show_config

Method _show_config

rightnow_cli/interactive.py:484–498  ·  view source on GitHub ↗

Show config.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 1

startMethod · 0.95

Calls 4

_setup_api_keyMethod · 0.95
get_configMethod · 0.80
count_cached_kernelsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected