feat: add --dry-run flag for deploy and ship commands#82
Open
JoshSalway wants to merge 1 commit intolaravel:mainfrom
Open
feat: add --dry-run flag for deploy and ship commands#82JoshSalway wants to merge 1 commit intolaravel:mainfrom
JoshSalway wants to merge 1 commit intolaravel:mainfrom
Conversation
laravel#38: The code path in BaseCommand::runUpdate() is reachable when CLI flags are passed in interactive mode and the user confirms. Removed the misleading "When would we ever get here?" comment. laravel#39: Added --dry-run flag to both deploy and ship commands. Shows what would happen (app, environment, branch, region, database type) without executing any API calls. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This comment was marked as spam.
This comment was marked as spam.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BaseCommand::runUpdate(): Removed the misleading// TODO: When would we ever get here?comment. Analysis shows the code IS reachable: when in interactive mode with pre-filled form values (CLI options passed alongside interactive use) and the user confirms the update, execution reaches that branch. The code is correct; only the comment was wrong.--dry-runflag for deploy and ship: Added{--dry-run : Show what would happen without executing}to both commands. When used, the commands resolve all options (application, environment, region, database type) and display the plan without making any mutating API calls.Closes #38, closes #39.
Test plan
deploy --dry-runresolves app/env and succeeds withoutInitiateDeploymentRequestmockship --dry-runwith explicit options shows plan without creating anythingship --dry-runwith defaults resolves correctly🤖 Generated with Claude Code