Skip to content

Commit

Permalink
fix: correct message truncation in mise run
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 14, 2024
1 parent 5af3b17 commit c668857
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/cli/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ impl Run {
let cmd = style::ebold(format!("$ {script} {args}", args = args.join(" ")))
.bright()
.to_string();
let cmd = trunc(&config.redact(cmd)?);
if !self.quiet(Some(task)) {
eprintln!("{prefix} {cmd}");
let msg = format!("{prefix} {}", config.redact(cmd)?);
eprintln!("{}", trunc(&msg));
}

if script.starts_with("#!") {
Expand Down Expand Up @@ -465,11 +465,11 @@ impl Run {
}
}

let cmd = format!("{} {}", display_path(file), args.join(" "));
let cmd = style::ebold(format!("$ {cmd}")).bright().to_string();
let cmd = trunc(&config.redact(cmd)?);
if !self.quiet(Some(task)) {
eprintln!("{prefix} {cmd}");
let cmd = format!("{} {}", display_path(file), args.join(" "));
let cmd = style::ebold(format!("$ {cmd}")).bright().to_string();
let cmd = trunc(&format!("{prefix} {}", config.redact(cmd)?));
eprintln!("{cmd}");
}

self.exec(file, &args, task, &env, prefix)
Expand Down

0 comments on commit c668857

Please sign in to comment.