From 929abd5e360747392453f1fefb38fa9decf34c3c Mon Sep 17 00:00:00 2001 From: Darren Cheng Date: Thu, 30 Apr 2026 09:29:31 -0700 Subject: [PATCH] update: run claude update and devbox version update Adds updateClaude and updateDevbox steps to dots up between updateBrew and updateSolargraph. Each guards on `which` and logs a skip message when the binary isn't installed, mirroring the install-side pattern. Co-Authored-By: Claude Opus 4.7 (1M context) --- cli/commands/update/root.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/cli/commands/update/root.go b/cli/commands/update/root.go index 644963e2..e609abf8 100644 --- a/cli/commands/update/root.go +++ b/cli/commands/update/root.go @@ -22,6 +22,8 @@ func Run() { updateZsh() updateTmux() updateBrew() + updateClaude() + updateDevbox() updateSolargraph() reshimAsdf() install.Call("vim") @@ -72,6 +74,24 @@ func updateBrew() { run.Verbose("brew upgrade") } +func updateClaude() { + if err := run.Silent("which claude"); err != nil { + log.Info("Claude Code not installed, skipping") + return + } + log.Info("Updating Claude Code") + run.Verbose("claude update") +} + +func updateDevbox() { + if err := run.Silent("which devbox"); err != nil { + log.Info("Devbox not installed, skipping") + return + } + log.Info("Updating Devbox") + run.Verbose("devbox version update") +} + func updateSolargraph() { log.Info("Updating solargraph gem") run.Verbose("gem update solargraph")