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

Method queue_description

crates/chat-cli/src/cli/chat/tools/fs_read.rs:78–102  ·  view source on GitHub ↗
(&self, os: &Os, updates: &mut impl Write)

Source from the content-addressed store, hash-verified

76 }
77
78 pub async fn queue_description(&self, os: &Os, updates: &mut impl Write) -> Result<()> {
79 if self.operations.len() == 1 {
80 // Single operation - display without batch prefix
81 self.operations[0].queue_description(os, updates).await
82 } else {
83 // Multiple operations - display as batch
84 queue!(
85 updates,
86 style::Print("Batch fs_read operation with "),
87 StyledText::success_fg(),
88 style::Print(self.operations.len()),
89 StyledText::reset(),
90 style::Print(" operations:\n")
91 )?;
92
93 // Display purpose if available for batch operations
94 let _ = display_purpose(self.summary.as_ref(), updates);
95
96 for (i, op) in self.operations.iter().enumerate() {
97 queue!(updates, style::Print(format!("\n↱ Operation {}: ", i + 1)))?;
98 op.queue_description(os, updates).await?;
99 }
100 Ok(())
101 }
102 }
103
104 pub fn eval_perm(&self, os: &Os, agent: &Agent) -> PermissionEvalResult {
105 #[derive(Debug, Deserialize)]

Callers

nothing calls this directly

Calls 8

display_purposeFunction · 0.85
sanitize_path_tool_argFunction · 0.85
convert_negative_indexFunction · 0.85
readMethod · 0.80
lenMethod · 0.45
as_refMethod · 0.45
start_lineMethod · 0.45
end_lineMethod · 0.45

Tested by

no test coverage detected