|
2 | 2 |
|
3 | 3 | use std::{cell::RefCell, io::Write, process::ExitStatus as StdExitStatus, rc::Rc, sync::Arc}; |
4 | 4 |
|
| 5 | +use owo_colors::Style; |
5 | 6 | use vite_path::AbsolutePath; |
6 | 7 | use vite_task_plan::{ExecutionItemDisplay, LeafExecutionKind}; |
7 | 8 |
|
8 | 9 | use super::{ |
9 | | - ExitStatus, GraphExecutionReporter, GraphExecutionReporterBuilder, LeafExecutionReporter, |
10 | | - StdioConfig, StdioSuggestion, format_command_with_cache_status, format_task_label, |
11 | | - write_leaf_trailing_output, |
| 10 | + ColorizeExt, ExitStatus, GraphExecutionReporter, GraphExecutionReporterBuilder, |
| 11 | + LeafExecutionReporter, StdioConfig, StdioSuggestion, format_command_with_cache_status, |
| 12 | + format_task_label, write_leaf_trailing_output, |
12 | 13 | }; |
13 | 14 | use crate::session::event::{CacheStatus, CacheUpdateStatus, ExecutionError}; |
14 | 15 |
|
@@ -109,7 +110,12 @@ impl LeafExecutionReporter for GroupedLeafReporter { |
109 | 110 | if let Some(ref grouped_buffer) = self.grouped_buffer { |
110 | 111 | let content = grouped_buffer.borrow(); |
111 | 112 | if !content.is_empty() { |
112 | | - let header = vite_str::format!("── {} ──\n", self.label); |
| 113 | + let header = vite_str::format!( |
| 114 | + "{} {} {}\n", |
| 115 | + "──".style(Style::new().bright_black()), |
| 116 | + self.label, |
| 117 | + "──".style(Style::new().bright_black()) |
| 118 | + ); |
113 | 119 | extra.extend_from_slice(header.as_bytes()); |
114 | 120 | extra.extend_from_slice(&content); |
115 | 121 | } |
|
0 commit comments