(path: &Path)
| 361 | } |
| 362 | |
| 363 | fn shell_quote(path: &Path) -> io::Result<String> { |
| 364 | let value = path.to_str().ok_or_else(|| { |
| 365 | io::Error::new( |
| 366 | ErrorKind::InvalidData, |
| 367 | "the Atomic binary path is not valid UTF-8 and cannot be embedded in a Git hook", |
| 368 | ) |
| 369 | })?; |
| 370 | Ok(format!("'{}'", value.replace('\'', "'\\''"))) |
| 371 | } |
| 372 | |
| 373 | pub(super) fn print_unmanaged_instructions(reason: &str, binary: &Path) -> CliResult<()> { |
| 374 | let command = integration_command(binary).map_err(|error| { |
no outgoing calls
no test coverage detected