MCPcopy Create free account
hub / github.com/ermak-dev/cloudpub / load

Method load

client/src/config.rs:206–211  ·  view source on GitHub ↗
(cfg_name: &str, user_dir: bool, readonly: bool)

Source from the content-addressed store, hash-verified

204 }
205
206 pub fn load(cfg_name: &str, user_dir: bool, readonly: bool) -> Result<Self> {
207 let mut config_path = Self::get_config_dir(user_dir)?;
208 config_path.push(cfg_name);
209
210 Self::from_file(&config_path, readonly)
211 }
212
213 pub fn set(&mut self, key: &str, value: &str) -> Result<()> {
214 let option = ConfigOption::from_str(key)?;

Callers 3

newMethod · 0.80
wait_for_capacityMethod · 0.80
closedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected