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

Method __init__

rightnow_cli/cache.py:12–24  ·  view source on GitHub ↗
(self, base_dir: Optional[Path] = None)

Source from the content-addressed store, hash-verified

10
11class CacheManager:
12 def __init__(self, base_dir: Optional[Path] = None):
13 if base_dir is None:
14 self.base_dir = Path.home() / ".rightnow-cli"
15 else:
16 self.base_dir = Path(base_dir)
17
18 self.config_dir = self.base_dir
19 self.cache_dir = self.base_dir / "cache"
20 self.kernels_dir = self.cache_dir / "kernels"
21 self.db_path = self.cache_dir / "metadata.db"
22
23 self._initialize_directories()
24 self._initialize_database()
25
26 def _initialize_directories(self):
27 """Create necessary directories if they don't exist."""

Callers

nothing calls this directly

Calls 2

_initialize_databaseMethod · 0.95

Tested by

no test coverage detected