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

Method save_config

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

Save the store configuration.

(&self)

Source from the content-addressed store, hash-verified

762
763 /// Save the store configuration.
764 fn save_config(&self) -> Result<(), IdentityError> {
765 let config_path = self.root.join(Self::CONFIG_FILE);
766 let content = toml::to_string_pretty(&self.config)?;
767 fs::write(&config_path, content)?;
768 Ok(())
769 }
770}
771
772#[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