Skip to content

Commit

Permalink
If verbosity level is 1 or higher, it shows dirty files.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgiagante committed Nov 14, 2024
1 parent 36cbce7 commit d03ac1d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions crates/common/src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl Spinner {

pub fn tick(&mut self) {
if self.no_progress {
return
return;
}

let indicator = self.indicator[self.idx % self.indicator.len()].green();
Expand Down Expand Up @@ -118,7 +118,7 @@ impl SpinnerReporter {
// end with a newline
let _ = sh_println!();
let _ = ack.send(());
break
break;
}
Err(TryRecvError::Disconnected) => break,
Err(TryRecvError::Empty) => thread::sleep(Duration::from_millis(100)),
Expand Down Expand Up @@ -159,6 +159,16 @@ impl Reporter for SpinnerReporter {
version.minor,
version.patch
));

if foundry_common::shell::verbosity() > 0 {
self.send_msg(
dirty_files
.iter()
.map(|path| path.display().to_string())
.collect::<Vec<String>>()
.join("\n"),
);
}
}

fn on_compiler_success(&self, compiler_name: &str, version: &Version, duration: &Duration) {
Expand Down

0 comments on commit d03ac1d

Please sign in to comment.