[ENH] - Additional checks for the cli init stage #1399
Labels
area:developer-experience 👩🏻💻
needs: discussion 💬
Needs discussion with the rest of the team
type: duplicate 👯♀️
This issue or PR already exists
type: enhancement 💅🏼
New feature or request
Feature description
During the
qhub init
I used aprojectname
that had an underscore. I believe it wasn't until I got to thedeploy
stage that I saw a failure:The error message
Error: "name" can only contain lowercase letters, numbers and hyphens
is what we were hitting, but this originated from theprojectname
flag passed toqhub init
so its very hard for an end user to comprehend how to resolve this.I recommend we do the checks from the above errors ("lowercase letters, numbers and hyphens" and regexp "^a-z$") during the init stage so we can give users helpful error messages.
Value and/or benefit
Users are given clearer error messaging.
Anything else?
No response
The text was updated successfully, but these errors were encountered: