MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / run

Method run

atomic-cli/src/commands/diagnostics/mod.rs:49–61  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

47
48impl Command for Diagnostics {
49 fn run(&self) -> CliResult<()> {
50 let report = collect::collect();
51 if self.json {
52 println!(
53 "{}",
54 serde_json::to_string_pretty(&report)
55 .expect("the report is plain data and always serializes")
56 );
57 } else {
58 print!("{}", render::render_text(&report));
59 }
60 Ok(())
61 }
62}

Callers

nothing calls this directly

Calls 1

collectFunction · 0.70

Tested by

no test coverage detected