(&self, os: &Os, updates: &mut impl Write)
| 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)] |
nothing calls this directly
no test coverage detected