Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Validate site name on init command #264
When creating a new site using the web UI, the site name is subject to a validation rule that allows only alphanumeric characters and hyphens. The same doesn't happen when using the
I've also added a few cosmetic changes to some user-facing messages in the
- Test plan
I started writing an integration test, but then I saw that there is a big change to the testing architecture underway in #254. I didn't want to create possible merge conflicts, so I've refrained from committing the tests for now. Happy to revisit.
The change makes use of inquirer's validate method, which displays an error when the user tries to input an invalid value.
The error message is consistent with the instructions shown in the web UI.
- Description for the changelog
Validates site name on init command. Closes #211.
- A picture of a cute animal (not mandatory but encouraged)