feat: support ZVM (#777)
This commit is contained in:
@@ -163,6 +163,7 @@ pub enum Step {
|
|||||||
Xcodes,
|
Xcodes,
|
||||||
Yadm,
|
Yadm,
|
||||||
Yarn,
|
Yarn,
|
||||||
|
Zvm,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Default, Debug, Merge)]
|
#[derive(Deserialize, Default, Debug, Merge)]
|
||||||
|
|||||||
@@ -416,6 +416,7 @@ fn run() -> Result<()> {
|
|||||||
generic::run_lensfun_update_data(&ctx)
|
generic::run_lensfun_update_data(&ctx)
|
||||||
})?;
|
})?;
|
||||||
runner.execute(Step::Poetry, "Poetry", || generic::run_poetry(&ctx))?;
|
runner.execute(Step::Poetry, "Poetry", || generic::run_poetry(&ctx))?;
|
||||||
|
runner.execute(Step::Zvm, "ZVM", || generic::run_zvm(&ctx))?;
|
||||||
|
|
||||||
if should_run_powershell {
|
if should_run_powershell {
|
||||||
runner.execute(Step::Powershell, "Powershell Modules Update", || {
|
runner.execute(Step::Powershell, "Powershell Modules Update", || {
|
||||||
|
|||||||
@@ -1008,3 +1008,12 @@ pub fn run_poetry(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
print_separator("Poetry");
|
print_separator("Poetry");
|
||||||
ctx.run_type().execute(poetry).args(["self", "update"]).status_checked()
|
ctx.run_type().execute(poetry).args(["self", "update"]).status_checked()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Involve `zvm upgrade` to update ZVM
|
||||||
|
pub fn run_zvm(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
let zvm = require("zvm")?;
|
||||||
|
|
||||||
|
print_separator("ZVM");
|
||||||
|
|
||||||
|
ctx.run_type().execute(zvm).arg("upgrade").status_checked()
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user