feat: support ZVM (#777)

This commit is contained in:
SteveLauC
2024-07-23 07:26:08 +08:00
committed by GitHub
parent fdf40dbf43
commit b8da17106a
3 changed files with 11 additions and 0 deletions

View File

@@ -1008,3 +1008,12 @@ pub fn run_poetry(ctx: &ExecutionContext) -> Result<()> {
print_separator("Poetry");
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()
}