Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Add validation for workers names in wrangler init and wrangler generate #686

Merged
merged 5 commits into from
Sep 24, 2019

Conversation

gabbifish
Copy link
Contributor

@gabbifish gabbifish commented Sep 23, 2019

Closes #470

Contains unit tests; has been tested with wrangler init and wrangler generate.

Also contains minor edits to binding names validation for consistency.

@gabbifish gabbifish added status - needs review regression Something is broken, but works in previous releases labels Sep 23, 2019
@gabbifish gabbifish added this to the 1.4.0 milestone Sep 23, 2019
@ashleymichal
Copy link
Contributor

i think we should actually also call this from the validate_target function on other wrangler commands, especially publish.

Copy link
Contributor

@EverlastingBugstopper EverlastingBugstopper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great - i'd just remove those two else statements and put the Ok(()) at the very bottom of the function

@gabbifish gabbifish merged commit 0402df3 into master Sep 24, 2019
@ashleygwilliams ashleygwilliams deleted the gabbi/fix-#470 branch September 24, 2019 00:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
regression Something is broken, but works in previous releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrangler generate project name requirements
4 participants