Add support for upgrading gcloud (#561)

This commit is contained in:
Don Petersen
2020-11-15 20:07:42 -08:00
committed by GitHub
parent e7768e0d39
commit 36b436efcc
3 changed files with 15 additions and 0 deletions

View File

@@ -113,6 +113,17 @@ pub fn run_krew_upgrade(run_type: RunType) -> Result<()> {
run_type.execute(&krew).args(&["upgrade"]).check_run()
}
pub fn run_gcloud_components_update(run_type: RunType) -> Result<()> {
let gcloud = utils::require("gcloud")?;
print_separator("gcloud");
run_type
.execute(&gcloud)
.args(&["components", "update", "--quiet"])
.check_run()
}
pub fn run_jetpack(run_type: RunType) -> Result<()> {
let jetpack = utils::require("jetpack")?;