torus-cli icon indicating copy to clipboard operation
torus-cli copied to clipboard

Capital letters not allowed in project names

Open mattroseman opened this issue 6 years ago • 0 comments

Replicate

  1. run ./torus link in a new folder and create a new project
  2. On the ✗ Create a new project: prompt type something with capital letters (like TorusTestProject)
  3. Get this error message
 Project names must be between 1 and 64 characters in length and only contain alphabetical letters, numbers, hyphens, and underscores.

The error message says nothing of letters needing to be lowercase, but that seems to be the case.

In the validation code validate/validate.go:11 It only allows lowercase, but the error message doesn't specify as such.

The error message also doesn't specify that the project name must start with a letter.

If I can make a suggestion, I would reword it to something like

Project names must be between 1 and 64 characters in length; only contain lowercase
letters, numbers, hyphens, and underscores; and begin with a lowercase letter.

mattroseman avatar Mar 30 '18 18:03 mattroseman