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

Method get_int

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

Source from the content-addressed store, hash-verified

249 }
250
251 pub fn get_int(&self, key: Setting) -> Option<i64> {
252 self.get(key).and_then(|value| value.as_i64())
253 }
254
255 pub fn get_int_or(&self, key: Setting, default: usize) -> usize {
256 self.get_int(key).map_or(default, |v| v as usize)

Callers 3

timeout_configFunction · 0.80
get_int_orMethod · 0.80
load_toolsMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected