Skip to content

Convert :add-package to AddPackageCommand (#392)#398

Open
ChrisonSimtian wants to merge 1 commit into
cli-cmd-get-configurationfrom
cli-cmd-add-package
Open

Convert :add-package to AddPackageCommand (#392)#398
ChrisonSimtian wants to merge 1 commit into
cli-cmd-get-configurationfrom
cli-cmd-add-package

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 :add-package into AddPackageCommand : IFalloutCommand. The shared AddOrReplacePackage helper and PACKAGE_TYPE_*/BUILD_PROJECT_FILE constants stay on Program as residual (still used by cake + the Cake tests) until the collapse PR (#404). Replaces the DelegateCommand adapter. Name/behaviour unchanged.

🤖 Generated with Claude Code

@ChrisonSimtian ChrisonSimtian requested a review from a team as a code owner June 17, 2026 09:58
@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-get-configuration June 17, 2026 10:23
@ChrisonSimtian ChrisonSimtian force-pushed the cli-cmd-get-configuration branch from 5ba1600 to 1c98a9a Compare June 17, 2026 10:32
Lift the :add-package handler into a standalone IFalloutCommand type. The shared
AddOrReplacePackage helper and PACKAGE_TYPE_*/BUILD_PROJECT_FILE constants stay on
Program as residual (still used by cake and tests) until the #392 collapse PR moves
them into services. Replaces the DelegateCommand adapter.

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. AddPackageCommand calls ProjectModelTasks.Initialize() (registers MSBuild) and resolves packages over the network before any assertable branch, so a meaningful unit test needs a process/NuGet seam. Deferred to the #392 collapse PR, where the shared helpers become injectable services.

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