MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / create_default_config

Method create_default_config

core/daemon_config.py:123–128  ·  view source on GitHub ↗

Create a default config file if it doesn't exist.

(self)

Source from the content-addressed store, hash-verified

121 json.dump(self._config, f, indent=2)
122
123 def create_default_config(self) -> Path:
124 """Create a default config file if it doesn't exist."""
125 if not self.config_file.exists():
126 with open(self.config_file, 'w') as f:
127 json.dump(DEFAULT_CONFIG, f, indent=2)
128 return self.config_file
129
130 @property
131 def all(self) -> Dict[str, Any]:

Callers 1

create_default_configFunction · 0.80

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected