This commit is contained in:
Roey Darwish Dror
2020-02-29 09:07:03 +02:00
committed by GitHub
parent 2ca27f2682
commit d4caac1fa5
2 changed files with 9 additions and 0 deletions

View File

@@ -145,6 +145,7 @@ fn run() -> Result<()> {
runner.execute("MacPorts", || macos::run_macports(&ctx))?;
runner.execute("nix", || unix::run_nix(&ctx))?;
runner.execute("home-manager", || unix::run_home_manager(run_type))?;
runner.execute("asdf", || unix::run_asdf(run_type))?;
}
}

View File

@@ -88,6 +88,14 @@ pub fn run_nix(ctx: &ExecutionContext) -> Result<()> {
run_type.execute(&nix_env).arg("--upgrade").check_run()
}
pub fn run_asdf(run_type: RunType) -> Result<()> {
let asdf = require("asdf")?;
print_separator("asdf");
run_type.execute(&asdf).arg("update").check_run()?;
run_type.execute(&asdf).args(&["plugin", "update", "--all"]).check_run()
}
pub fn run_home_manager(run_type: RunType) -> Result<()> {
let home_manager = require("home-manager")?;