(prompt: &str)
| 92 | } |
| 93 | |
| 94 | fn confirm_in_terminal(prompt: &str) -> CliResult<bool> { |
| 95 | dialoguer::Confirm::new() |
| 96 | .with_prompt(prompt) |
| 97 | .default(false) |
| 98 | .interact() |
| 99 | .map_err(|_| CliError::InvalidArgument { |
| 100 | message: "Splitting changes requires confirmation. Re-run with --confirm to acknowledge the risks and proceed non-interactively.".to_string(), |
| 101 | }) |
| 102 | } |
| 103 | |
| 104 | impl Command for Split { |
| 105 | fn run(&self) -> CliResult<()> { |
nothing calls this directly
no test coverage detected