From f7c9e42066cf249cb7735ee40f16dd9201fa3796 Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Fri, 21 Nov 2025 13:53:40 +0545 Subject: [PATCH] feat(mise): add support for parallel job configuration in mise (#1548) Co-authored-by: Gideon <87426140+GideonBear@users.noreply.github.com> --- config.example.toml | 4 ++++ src/config.rs | 5 +++++ src/steps/os/unix.rs | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/config.example.toml b/config.example.toml index 04ac31be..6292ba0a 100644 --- a/config.example.toml +++ b/config.example.toml @@ -296,6 +296,10 @@ # (default: false) # bump = false +# Number of jobs to run in parallel +# (default: 4) +# jobs = 4 + # Run interactively # (default: false) # interactive = false diff --git a/src/config.rs b/src/config.rs index d485407a..7e00813b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -179,6 +179,7 @@ pub struct Chezmoi { pub struct Mise { bump: Option, interactive: Option, + jobs: Option, } #[derive(Deserialize, Default, Debug, Merge)] @@ -1823,6 +1824,10 @@ impl Config { .unwrap_or(false) } + pub fn mise_jobs(&self) -> u32 { + self.config_file.mise.as_ref().and_then(|mise| mise.jobs).unwrap_or(4) + } + pub fn mise_interactive(&self) -> bool { self.config_file .mise diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index 4b12adc3..175f4d06 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -871,6 +871,10 @@ pub fn run_mise(ctx: &ExecutionContext) -> Result<()> { cmd.arg("--bump"); } + if ctx.config().mise_jobs() != 4 { + cmd.args(["--jobs", &ctx.config().mise_jobs().to_string()]); + } + cmd.status_checked() }