Skip to content

Convert :cake-convert and :cake-clean to command types (#392)#402

Open
ChrisonSimtian wants to merge 3 commits into
cli-cmd-secretsfrom
cli-cmd-cake
Open

Convert :cake-convert and :cake-clean to command types (#392)#402
ChrisonSimtian wants to merge 3 commits into
cli-cmd-secretsfrom
cli-cmd-cake

Conversation

@ChrisonSimtian

@ChrisonSimtian ChrisonSimtian commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Part of #392. Stacked on #394 — merge after it lands.

Per the locked decision, cake's two verbs become discrete commands with names preserved: CakeConvertCommand (cake-convert) and CakeCleanCommand (cake-clean), both taking IConsolePrompts via the constructor. The .cake rewriting helpers (GetCakeFiles/GetCakeConvertedContent/GetCakePackages) stay on Program as internal residual (exercised by the Cake tests) until the collapse PR (#404). Replaces both DelegateCommand adapters.

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:06
@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-secrets June 17, 2026 10:24
ChrisonSimtian and others added 2 commits June 17, 2026 22:34
Lift the two cake handlers into CakeConvertCommand and CakeCleanCommand (discrete
commands, names preserved) taking IConsolePrompts via the constructor. The .cake
syntax-rewriting helpers (GetCakeFiles/GetCakeConvertedContent/GetCakePackages)
stay on Program as internal residual — GetCakeConvertedContent/GetCakePackages are
exercised directly by the Cake conversion tests — until the #392 collapse PR.
Replaces both DelegateCommand adapters. Tests: 30 pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Name resolution and the decline-delete path (returns 0, removes nothing).
CakeConvertCommand is integration-only (initializes MSBuild), tested via the
existing Cake conversion tests rather than a command unit test.

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

Copy link
Copy Markdown
Collaborator Author

Testing note: CakeCleanCommand is unit-tested here (name + decline-delete path). CakeConvertCommand is integration-only — it calls ProjectModelTasks.Initialize() (MSBuild) before any assertable branch — and remains covered by the existing Cake conversion tests (GetCakeConvertedContent/GetCakePackages). A command-level test is deferred to the #392 collapse PR.

Comment thread src/Fallout.Cli/Commands/CakeConvertCommand.cs Outdated
Co-authored-by: ITaluone <44049228+ITaluone@users.noreply.github.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.

2 participants