Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for mise #757

Merged
merged 1 commit into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
Mas,
Maza,
Micro,
Mise,

Check warning on line 109 in src/config.rs

View check run for this annotation

Codecov / codecov/patch

src/config.rs#L109

Added line #L109 was not covered by tests
Myrepos,
Nix,
Node,
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@
runner.execute(Step::Guix, "guix", || unix::run_guix(&ctx))?;
runner.execute(Step::HomeManager, "home-manager", || unix::run_home_manager(&ctx))?;
runner.execute(Step::Asdf, "asdf", || unix::run_asdf(&ctx))?;
runner.execute(Step::Mise, "mise", || unix::run_mise(&ctx))?;

Check warning on line 301 in src/main.rs

View check run for this annotation

Codecov / codecov/patch

src/main.rs#L301

Added line #L301 was not covered by tests
runner.execute(Step::Pkgin, "pkgin", || unix::run_pkgin(&ctx))?;
runner.execute(Step::Bun, "bun", || unix::run_bun(&ctx))?;
runner.execute(Step::BunPackages, "bun-packages", || unix::run_bun_packages(&ctx))?;
Expand Down
13 changes: 13 additions & 0 deletions src/steps/os/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,19 @@
.status_checked()
}

pub fn run_mise(ctx: &ExecutionContext) -> Result<()> {
let mise = require("mise")?;

Check warning on line 555 in src/steps/os/unix.rs

View check run for this annotation

Codecov / codecov/patch

src/steps/os/unix.rs#L554-L555

Added lines #L554 - L555 were not covered by tests

print_separator("mise");

ctx.run_type().execute(&mise).arg("upgrade").status_checked()?;

ctx.run_type()
.execute(&mise)
.args(["plugins", "update"])
.status_checked()
}

Check warning on line 566 in src/steps/os/unix.rs

View check run for this annotation

Codecov / codecov/patch

src/steps/os/unix.rs#L557-L566

Added lines #L557 - L566 were not covered by tests
pub fn run_home_manager(ctx: &ExecutionContext) -> Result<()> {
let home_manager = require("home-manager")?;

Expand Down
Loading