(output: &str, navigated_to: Option<&str>, target_id: Option<&str>)
| 735 | } |
| 736 | |
| 737 | fn print_output(output: &str, navigated_to: Option<&str>, target_id: Option<&str>) { |
| 738 | if !output.is_empty() { |
| 739 | print!("{output}"); |
| 740 | if !output.ends_with('\n') { |
| 741 | println!(); |
| 742 | } |
| 743 | } |
| 744 | if let Some(navigated_to) = navigated_to { |
| 745 | eprintln!("[navigated to: {navigated_to}]"); |
| 746 | } |
| 747 | if let Some(target_id) = target_id { |
| 748 | eprintln!("[target: {target_id}]"); |
| 749 | } |
| 750 | } |
| 751 | |
| 752 | fn print_response(resp: &protocol::DaemonResponse) { |
| 753 | if resp.success { |
no test coverage detected