From 11add6501ec2b1074bd7eee069779b0e2843096e Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Tue, 16 Aug 2022 20:15:43 -0600 Subject: [PATCH] exec: Set label width in output --- src/command/exec.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/command/exec.rs b/src/command/exec.rs index 31f8cfe..40d6740 100644 --- a/src/command/exec.rs +++ b/src/command/exec.rs @@ -95,7 +95,12 @@ pub async fn run(_global_args: &ArgMatches, local_args: &ArgMatches) -> Result<( let mut output = SimpleProgressOutput::new(local_args.is_present("verbose")); - let (monitor, meta) = JobMonitor::new(output.get_sender()); + let (mut monitor, meta) = JobMonitor::new(output.get_sender()); + + if let Some(width) = util::get_label_width(&targets) { + monitor.set_label_width(width); + } + let meta = meta.run(|meta| async move { let mut futures = Vec::new();