Add support for upgrading GitHub CLI Extensions
This commit is contained in:
committed by
Roey Darwish Dror
parent
44cba22d69
commit
ca4ffac6fb
@@ -89,6 +89,7 @@ pub enum Step {
|
||||
Fossil,
|
||||
Gcloud,
|
||||
Gem,
|
||||
GithubCliExtensions,
|
||||
GitRepos,
|
||||
Go,
|
||||
Haxelib,
|
||||
|
||||
@@ -327,6 +327,9 @@ fn run() -> Result<()> {
|
||||
runner.execute(Step::Micro, "micro", || generic::run_micro(run_type))?;
|
||||
runner.execute(Step::Raco, "raco", || generic::run_raco_update(run_type))?;
|
||||
runner.execute(Step::Spicetify, "spicetify", || generic::spicetify_upgrade(&ctx))?;
|
||||
runner.execute(Step::GithubCliExtensions, "Github CLI Extensions", || {
|
||||
generic::run_ghcli_extensions_upgrade(&ctx)
|
||||
})?;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
|
||||
@@ -475,3 +475,13 @@ pub fn spicetify_upgrade(ctx: &ExecutionContext) -> Result<()> {
|
||||
print_separator("Spicetify");
|
||||
ctx.run_type().execute(&spicetify).arg("upgrade").check_run()
|
||||
}
|
||||
|
||||
pub fn run_ghcli_extensions_upgrade(ctx: &ExecutionContext) -> Result<()> {
|
||||
let gh = utils::require("gh")?;
|
||||
|
||||
print_separator("GitHub CLI Extensions");
|
||||
ctx.run_type()
|
||||
.execute(&gh)
|
||||
.args(&["extension", "upgrade", "--all"])
|
||||
.check_run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user