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

Method save_config

rightnow_cli/cache.py:77–81  ·  view source on GitHub ↗

Save configuration to file.

(self, config: Dict[str, Any])

Source from the content-addressed store, hash-verified

75 return {}
76
77 def save_config(self, config: Dict[str, Any]):
78 """Save configuration to file."""
79 config_path = self.get_config_path()
80 with open(config_path, 'w') as f:
81 json.dump(config, f, indent=2)
82
83 def has_api_key(self) -> bool:
84 """Check if API key is configured and valid (not a placeholder)."""

Callers 5

save_api_keyMethod · 0.95
test_save_configMethod · 0.80
test_has_api_key_trueMethod · 0.80

Calls 1

get_config_pathMethod · 0.95

Tested by 3

test_save_configMethod · 0.64
test_has_api_key_trueMethod · 0.64