MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / remove

Method remove

crates/chat-cli/src/database/settings.rs:237–241  ·  view source on GitHub ↗
(&mut self, key: Setting)

Source from the content-addressed store, hash-verified

235 }
236
237 pub async fn remove(&mut self, key: Setting) -> Result<Option<Value>, DatabaseError> {
238 let key = self.0.remove(key.as_ref());
239 self.save_to_file().await?;
240 Ok(key)
241 }
242
243 pub fn get_bool(&self, key: Setting) -> Option<bool> {
244 self.get(key).and_then(|value| value.as_bool())

Callers 15

test_settingsFunction · 0.80
executeMethod · 0.80
executeMethod · 0.80
create_checkpointMethod · 0.80
load_toolsMethod · 0.80
handle_messenger_msgFunction · 0.80
invokeMethod · 0.80
launch_editorFunction · 0.80
launch_editorFunction · 0.80
remove_context_by_idMethod · 0.80
remove_context_by_idMethod · 0.80
process_clearMethod · 0.80

Calls 2

as_refMethod · 0.45
save_to_fileMethod · 0.45

Tested by 1

test_settingsFunction · 0.64