feat(mise): add support for parallel job configuration in mise (#1548)

Co-authored-by: Gideon <87426140+GideonBear@users.noreply.github.com>
This commit is contained in:
Rubin Bhandari
2025-11-21 13:53:40 +05:45
committed by GitHub
parent ef3ee7bea7
commit f7c9e42066
3 changed files with 13 additions and 0 deletions

View File

@@ -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

View File

@@ -179,6 +179,7 @@ pub struct Chezmoi {
pub struct Mise {
bump: Option<bool>,
interactive: Option<bool>,
jobs: Option<u32>,
}
#[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

View File

@@ -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()
}