MCPcopy Create free account
hub / github.com/aeroxy/chrome-devtools-cli / print_output

Function print_output

src/lib.rs:737–750  ·  view source on GitHub ↗
(output: &str, navigated_to: Option<&str>, target_id: Option<&str>)

Source from the content-addressed store, hash-verified

735}
736
737fn 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
752fn print_response(resp: &protocol::DaemonResponse) {
753 if resp.success {

Callers 2

print_responseFunction · 0.85
print_resultFunction · 0.85

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected