Skip to content

Convert :setup to SetupCommand (#392)#399

Open
ChrisonSimtian wants to merge 1 commit into
cli-cmd-add-packagefrom
cli-cmd-setup
Open

Convert :setup to SetupCommand (#392)#399
ChrisonSimtian wants to merge 1 commit into
cli-cmd-add-packagefrom
cli-cmd-setup

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 :setup into SetupCommand : IFalloutCommand — first command to take IConsolePrompts via the constructor. Scaffolding helpers (WriteBuildScripts/WriteConfigurationFile/GetTemplate, and test-exercised UpdateSolutionFileContent) stay on Program as internal residual until the collapse PR (#404). A transitional internal Program.Setup shim keeps the still-legacy cake handler compiling; removed when cake converts (#402). Replaces the DelegateCommand adapter. Name/behaviour unchanged.

Verification

Fallout.Cli.Tests 30 pass.

🤖 Generated with Claude Code

@ChrisonSimtian ChrisonSimtian requested a review from a team as a code owner June 17, 2026 10:01
@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-add-package June 17, 2026 10:23
Lift the :setup scaffolding handler into a standalone IFalloutCommand type that
takes IConsolePrompts via the constructor (first command to use injected prompts).
The scaffolding helpers (WriteBuildScripts/WriteConfigurationFile/GetTemplate and
the test-exercised UpdateSolutionFileContent) stay on Program as internal residual
until the #392 collapse PR. A transitional internal Setup shim remains on Program
so the still-legacy cake handler keeps compiling; it is removed when cake converts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ChrisonSimtian

Copy link
Copy Markdown
Collaborator Author

Testing note: no command unit test in this PR. SetupCommand calls NuGetVersionResolver.GetLatestVersion (network) up front and is otherwise heavily interactive/IO. Proper coverage needs an injectable version-resolver/scaffolding seam, deferred to the #392 collapse PR.

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