Suggest similar commands when a typo is detected#14569
Open
dario-piotrowicz wants to merge 2 commits into
Open
Suggest similar commands when a typo is detected#14569dario-piotrowicz wants to merge 2 commits into
dario-piotrowicz wants to merge 2 commits into
Conversation
🦋 Changeset detectedLatest commit: 6b9c442 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This comment was marked as resolved.
This comment was marked as resolved.
@cloudflare/autoconfig
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
926c16b to
0bfd645
Compare
Contributor
|
✅ All changesets look good |
0bfd645 to
3a4b143
Compare
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers |
penalosa
reviewed
Jul 7, 2026
jamesopstad
approved these changes
Jul 7, 2026
| expect(std.info).toContain('Did you mean "wrangler whoami"?'); | ||
| }); | ||
|
|
||
| it("should suggest 'deploy' when user types 'delpoy'", async ({ |
Contributor
There was a problem hiding this comment.
Is it overkill to have similar tests here and in did-you-mean.test.ts?
Member
Author
There was a problem hiding this comment.
mh.... I don't think it causes much harm 🤔 would you prefer that we'd remove some?
workers-devprod
approved these changes
Jul 7, 2026
workers-devprod
left a comment
Contributor
There was a problem hiding this comment.
Codeowners reviews satisfied
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.
This PR updates Wrangler to suggest the likely correct command when a user mistypes a command.
I'm not sure how valuable this is (I do think this improves UX somewhat) it was just a quick idea I had 🙂
A picture of a cute animal (not mandatory, but encouraged)