(prompt: &str)
| 107 | } |
| 108 | |
| 109 | fn confirm_in_terminal(prompt: &str) -> CliResult<bool> { |
| 110 | dialoguer::Confirm::new() |
| 111 | .with_prompt(prompt) |
| 112 | .default(false) |
| 113 | .interact() |
| 114 | .map_err(|_| CliError::InvalidArgument { |
| 115 | message: "Deleting this view would orphan changes and requires confirmation. Re-run with --force to acknowledge the risks and proceed non-interactively.".to_string(), |
| 116 | }) |
| 117 | } |
| 118 | |
| 119 | impl Command for Delete { |
| 120 | fn run(&self) -> CliResult<()> { |
nothing calls this directly
no test coverage detected