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

Method get_config

rightnow_cli/cache.py:69–75  ·  view source on GitHub ↗

Load configuration from file.

(self)

Source from the content-addressed store, hash-verified

67 return self.config_dir / "config.json"
68
69 def get_config(self) -> Dict[str, Any]:
70 """Load configuration from file."""
71 config_path = self.get_config_path()
72 if config_path.exists():
73 with open(config_path, 'r') as f:
74 return json.load(f)
75 return {}
76
77 def save_config(self, config: Dict[str, Any]):
78 """Save configuration to file."""

Callers 8

has_api_keyMethod · 0.95
get_api_keyMethod · 0.95
save_api_keyMethod · 0.95
_show_configMethod · 0.80
test_get_config_emptyMethod · 0.80
test_save_api_keyMethod · 0.80

Calls 3

get_config_pathMethod · 0.95
existsMethod · 0.80
loadMethod · 0.45

Tested by 3

test_get_config_emptyMethod · 0.64
test_save_api_keyMethod · 0.64