feat: support maza (#427)
This commit is contained in:
@@ -119,6 +119,7 @@ pub enum Step {
|
|||||||
Macports,
|
Macports,
|
||||||
Mamba,
|
Mamba,
|
||||||
Mas,
|
Mas,
|
||||||
|
Maza,
|
||||||
Micro,
|
Micro,
|
||||||
Myrepos,
|
Myrepos,
|
||||||
Nix,
|
Nix,
|
||||||
|
|||||||
@@ -357,6 +357,7 @@ For more information about this issue see https://askubuntu.com/questions/110969
|
|||||||
})?;
|
})?;
|
||||||
runner.execute(Step::Sdkman, "SDKMAN!", || unix::run_sdkman(config.cleanup(), run_type))?;
|
runner.execute(Step::Sdkman, "SDKMAN!", || unix::run_sdkman(config.cleanup(), run_type))?;
|
||||||
runner.execute(Step::Rcm, "rcm", || unix::run_rcm(&ctx))?;
|
runner.execute(Step::Rcm, "rcm", || unix::run_rcm(&ctx))?;
|
||||||
|
runner.execute(Step::Maza, "maza", || unix::run_maza(&ctx))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(any(
|
#[cfg(not(any(
|
||||||
|
|||||||
@@ -536,6 +536,13 @@ pub fn run_rcm(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
ctx.run_type().execute(rcup).arg("-v").status_checked()
|
ctx.run_type().execute(rcup).arg("-v").status_checked()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn run_maza(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
let maza = require("maza")?;
|
||||||
|
|
||||||
|
print_separator("maza");
|
||||||
|
ctx.run_type().execute(maza).arg("update").status_checked()
|
||||||
|
}
|
||||||
|
|
||||||
pub fn reboot() -> Result<()> {
|
pub fn reboot() -> Result<()> {
|
||||||
print!("Rebooting...");
|
print!("Rebooting...");
|
||||||
Command::new("sudo").arg("reboot").status_checked()
|
Command::new("sudo").arg("reboot").status_checked()
|
||||||
|
|||||||
Reference in New Issue
Block a user