(cli: &Cli)
| 553 | } |
| 554 | |
| 555 | fn has_debug_log(cli: &Cli) -> bool { |
| 556 | matches!( |
| 557 | cli.command, |
| 558 | Some(Command::Compile { |
| 559 | debug_log: Some(_), |
| 560 | .. |
| 561 | }) |
| 562 | ) |
| 563 | } |
| 564 | |
| 565 | pub fn write_log(path: &std::path::Path) -> Result<()> { |
| 566 | let debug_log = if let Some(debug_log) = debug::log_finish() { |