From a6195d284cbe67a8a06e539b465f3834e7cb0c71 Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Fri, 23 Jun 2023 17:03:57 +0800 Subject: [PATCH] feat: support Bob (#461) --- src/config.rs | 1 + src/main.rs | 1 + src/steps/generic.rs | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/src/config.rs b/src/config.rs index c763de43..93461840 100644 --- a/src/config.rs +++ b/src/config.rs @@ -103,6 +103,7 @@ pub enum Step { Asdf, Atom, Bin, + Bob, BrewCask, BrewFormula, Bun, diff --git a/src/main.rs b/src/main.rs index a232440f..fde09559 100644 --- a/src/main.rs +++ b/src/main.rs @@ -363,6 +363,7 @@ fn run() -> Result<()> { runner.execute(Step::GithubCliExtensions, "GitHub CLI Extensions", || { generic::run_ghcli_extensions_upgrade(&ctx) })?; + runner.execute(Step::Bob, "Bob", || generic::run_bob(&ctx))?; if config.use_predefined_git_repos() { if config.should_run(Step::Emacs) { diff --git a/src/steps/generic.rs b/src/steps/generic.rs index afc8482d..eda6ab27 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -784,3 +784,11 @@ pub fn run_stew(ctx: &ExecutionContext) -> Result<()> { print_separator("stew"); ctx.run_type().execute(stew).args(["upgrade", "--all"]).status_checked() } + +pub fn run_bob(ctx: &ExecutionContext) -> Result<()> { + let bob = require("bob")?; + + print_separator("Bob"); + + ctx.run_type().execute(bob).args(["update", "--all"]).status_checked() +}