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

Method format

src/protocol.rs:32–38  ·  view source on GitHub ↗

Resolve the output format, preferring the new `output_format` field and falling back to the legacy `json_output` bool.

(&self)

Source from the content-addressed store, hash-verified

30 /// Resolve the output format, preferring the new `output_format` field
31 /// and falling back to the legacy `json_output` bool.
32 pub fn format(&self) -> OutputFormat {
33 self.output_format.unwrap_or(if self.json_output {
34 OutputFormat::Json
35 } else {
36 OutputFormat::Text
37 })
38 }
39}
40
41/// Response from daemon to CLI client.

Callers 3

log_pathMethod · 0.80
execute_commandFunction · 0.80
inner_executeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected