feat: support stew (#422)

This commit is contained in:
SteveLauC
2023-05-05 16:17:42 +08:00
committed by GitHub
parent d640bc66f5
commit f30e36d7bb
3 changed files with 9 additions and 0 deletions

View File

@@ -150,6 +150,7 @@ pub enum Step {
Sparkle,
Spicetify,
Stack,
Stew,
System,
Tldr,
Tlmgr,

View File

@@ -403,6 +403,7 @@ For more information about this issue see https://askubuntu.com/questions/110969
runner.execute(Step::Julia, "julia", || generic::update_julia_packages(&ctx))?;
runner.execute(Step::Haxelib, "haxelib", || generic::run_haxelib_update(&ctx))?;
runner.execute(Step::Sheldon, "sheldon", || generic::run_sheldon(&ctx))?;
runner.execute(Step::Stew, "stew", || generic::run_stew(run_type))?;
runner.execute(Step::Rtcl, "rtcl", || generic::run_rtcl(&ctx))?;
runner.execute(Step::Bin, "bin", || generic::bin_update(&ctx))?;
runner.execute(Step::Gcloud, "gcloud", || {

View File

@@ -726,3 +726,10 @@ pub fn run_helm_repo_update(run_type: RunType) -> Result<()> {
Err(eyre!(StepFailed))
}
}
pub fn run_stew(run_type: RunType) -> Result<()> {
let stew = require("stew")?;
print_separator("stew");
run_type.execute(stew).args(["upgrade", "--all"]).status_checked()
}