MCPcopy Create free account
hub / github.com/apache/datafusion / print_styled

Function print_styled

benchmarks/src/benchmark_runner/mod.rs:87–93  ·  view source on GitHub ↗

Writes already styled output through `anstream` so ANSI color handling matches clap help output on supported terminals.

(output: &str)

Source from the content-addressed store, hash-verified

85/// Writes already styled output through `anstream` so ANSI color handling
86/// matches clap help output on supported terminals.
87fn print_styled(output: &str) -> Result<()> {
88 let mut stdout = anstream::stdout();
89
90 write!(&mut stdout, "{output}")
91 .map_err(|e| DataFusionError::External(Box::new(e)))?;
92 Ok(())
93}
94
95/// Resolves the SQL benchmark root from either the repository root or the
96/// benchmarks crate manifest directory.

Callers 1

run_cliFunction · 0.85

Calls 1

newFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…