Skip to content

Commit 5ddbbe3

Browse files
committed
DEVENV_TASKS_QUIET: make it a boolean using true
1 parent efc8bf8 commit 5ddbbe3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

devenv-tasks/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ impl TaskState {
315315
match result {
316316
Ok(Some(line)) => {
317317
// Only log to tracing if not quiet
318-
let is_quiet = std::env::var("DEVENV_TASKS_QUIET").is_ok();
318+
let is_quiet = std::env::var("DEVENV_TASKS_QUIET").map(|v| v == "true").unwrap_or(false);
319319
if !is_quiet {
320320
info!(stdout = %line);
321321
}
@@ -673,7 +673,7 @@ impl TasksUi {
673673

674674
// Set environment variable for tracing logs
675675
if quiet {
676-
std::env::set_var("DEVENV_TASKS_QUIET", "1");
676+
std::env::set_var("DEVENV_TASKS_QUIET", "true");
677677
}
678678

679679
Ok(Self {

devenv/src/devenv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ impl Devenv {
331331

332332
// Set DEVENV_TASKS_QUIET if quiet mode is enabled in global options
333333
if self.global_options.quiet {
334-
shell_cmd.env("DEVENV_TASKS_QUIET", "1");
334+
shell_cmd.env("DEVENV_TASKS_QUIET", "true");
335335
}
336336

337337
Ok(shell_cmd)

0 commit comments

Comments
 (0)