From d50deecf98fabcc62707499b09f2870cfef3cf51 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Fri, 23 Oct 2026 23:41:15 +0100 Subject: [PATCH] feat(cli): pipelines update forwards to the installation's lifecycle --- internal/cli/commands.go | 1 + internal/cli/help.go | 1 + internal/installation/installation.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/cli/commands.go b/internal/cli/commands.go index d94e9cb7..4daef5f2 100644 --- a/internal/cli/commands.go +++ b/internal/cli/commands.go @@ -72,5 +72,6 @@ var serviceHelp = map[string]string{ "restart": "Stop, then start both services, retaining definitions, run history, and credentials.", "doctor": "Check both health endpoints and host OpenCode API discovery; does not execute a model.", "logs": "Follow the native server log. Press Ctrl+C to stop following.", + "update": "Update this installation: wait for executing runs, pull the source checkout it was installed from, re-run its installer the same way (data and credentials kept), restart, and print the startup report.", "uninstall": "Remove verified Go binaries from this command's bin directory; retain data and drafts. --yes skips confirmation. Existing managed installations can be selected explicitly with PIPELINES_PREFIX.", } diff --git a/internal/cli/help.go b/internal/cli/help.go index 435b8238..03f491c9 100644 --- a/internal/cli/help.go +++ b/internal/cli/help.go @@ -53,6 +53,7 @@ SERVER / INTERFACE service enable Configure user autostart service disable | status Stop/remove autostart, or inspect OS service status skill install Install/update the shared OpenCode and Claude Code workflow skill + update Update this installation from its source checkout uninstall [--yes] Remove verified Go binaries; retain data and drafts Legacy managed installs: select PIPELINES_PREFIX explicitly for start/stop, diff --git a/internal/installation/installation.go b/internal/installation/installation.go index 32f0ded4..9859ce0d 100644 --- a/internal/installation/installation.go +++ b/internal/installation/installation.go @@ -100,7 +100,7 @@ func (c Config) Environment() error { func Service(action string) bool { switch action { - case "start", "stop", "restart", "doctor", "logs", "uninstall": + case "start", "stop", "restart", "doctor", "logs", "uninstall", "update": return true } return false