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

Method save_config

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

Save the store configuration.

(&self)

Source from the content-addressed store, hash-verified

913
914 /// Save the store configuration.
915 fn save_config(&self) -> Result<(), IdentityError> {
916 let config_path = self.root.join(Self::CONFIG_FILE);
917 let content = toml::to_string_pretty(&self.config)?;
918 fs::write(&config_path, content)?;
919 Ok(())
920 }
921}
922
923#[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.50

Tested by

no test coverage detected