Writes already styled output through `anstream` so ANSI color handling matches clap help output on supported terminals.
(output: &str)
| 85 | /// Writes already styled output through `anstream` so ANSI color handling |
| 86 | /// matches clap help output on supported terminals. |
| 87 | fn 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. |