committed by
GitHub
parent
2ca27f2682
commit
d4caac1fa5
@@ -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))?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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")?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user