Skip to content

Convert :update to UpdateCommand (#392)#400

Open
ChrisonSimtian wants to merge 2 commits into
cli-cmd-setupfrom
cli-cmd-update
Open

Convert :update to UpdateCommand (#392)#400
ChrisonSimtian wants to merge 2 commits into
cli-cmd-setupfrom
cli-cmd-update

Conversation

@ChrisonSimtian

@ChrisonSimtian ChrisonSimtian commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Part of #392 (one command per PR). Stacked on #394 — merge after it lands.

Lifts :update (and its build-script/project/config/global.json update steps) into UpdateCommand : IFalloutCommand, taking IConsolePrompts via the constructor. Calls the shared GetConfiguration/WriteBuildScripts/WriteConfigurationFile helpers still on Program (residual until the collapse PR #404). Replaces the DelegateCommand adapter; deletes Program.Update.cs. Name/behaviour unchanged.

🤖 Generated with Claude Code

@ChrisonSimtian ChrisonSimtian requested a review from a team as a code owner June 17, 2026 10:03
@ChrisonSimtian ChrisonSimtian added the target/2026 Targets the 2026 calendar-version line (current). See ADR-0004. label Jun 17, 2026
@ChrisonSimtian ChrisonSimtian changed the base branch from cli-command-dispatch-foundation to cli-cmd-setup June 17, 2026 10:23
ChrisonSimtian and others added 2 commits June 17, 2026 22:32
Lift the :update handler (and its build-script/project/config/global.json update
steps) into a standalone IFalloutCommand type taking IConsolePrompts via the
constructor. Calls the shared GetConfiguration/WriteBuildScripts/WriteConfigurationFile
helpers still residing on Program until the #392 collapse PR. Replaces the
DelegateCommand adapter; deletes Program.Update.cs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Name resolution and the decline-all path (no build script, every confirmation
declined: no steps run, command still completes). Adds a shared FakeConsolePrompts
test double reused by the secrets/cake command tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

target/2026 Targets the 2026 calendar-version line (current). See ADR-0004.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant