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

Method get_id

crates/chat-cli/src/cli/chat/tools/todo.rs:465–473  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

463 }
464
465 pub fn get_id(&self) -> Option<String> {
466 match self {
467 TodoList::Add { current_id, .. }
468 | TodoList::Complete { current_id, .. }
469 | TodoList::Remove { current_id, .. } => Some(current_id.clone()),
470 TodoList::Load { load_id } => Some(load_id.clone()),
471 TodoList::Create { .. } | TodoList::Lookup => None,
472 }
473 }
474}
475
476/// Generated by Q

Callers 3

invokeMethod · 0.45
validateMethod · 0.45

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected