Skip to content

Commit

Permalink
feat(cli): Hide build status messages for successful builds of interm…
Browse files Browse the repository at this point in the history
…ediate targets
  • Loading branch information
alerque committed Mar 12, 2024
1 parent 36c7805 commit 160423c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,16 @@ impl MakeTargetStatus {
self.println(format!("{target}: {line}"));
}
pub fn pass(&self) {
let msg = style(LocalText::new("make-report-pass")
.arg("target", style(self.target.clone()).white().bold())
.fmt()).green().bright().to_string();
self.finish_with_message(msg);
let target = self.target.clone();
if target.starts_with(".casile") {
self.bar.disable_steady_tick();
TUI.remove(&self.bar);
} else {
let msg = style(LocalText::new("make-report-pass")
.arg("target", style(target).white().bold())
.fmt()).green().bright().to_string();
self.finish_with_message(msg);
}
}
pub fn fail(&self) {
let msg = style(LocalText::new("make-report-fail")
Expand Down

0 comments on commit 160423c

Please sign in to comment.