MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / save_config

Method save_config

atomic-identity/src/store.rs:894–899  ·  view source on GitHub ↗

Save the store configuration.

(&self)

Source from the content-addressed store, hash-verified

892
893 /// Save the store configuration.
894 fn save_config(&self) -> Result<(), IdentityError> {
895 let config_path = self.root.join(Self::CONFIG_FILE);
896 let content = toml::to_string_pretty(&self.config)?;
897 fs::write(&config_path, content)?;
898 Ok(())
899 }
900}
901
902#[cfg(test)]

Callers 4

deleteMethod · 0.80
set_defaultMethod · 0.80
set_default_for_usageMethod · 0.80
clear_defaultMethod · 0.80

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected