manifoldco / manifoldco/torus-cli
Capital letters not allowed in project names
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 603
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
Replicate
- run
./torus linkin a new folder and create a new project - On the
✗ Create a new project:prompt type something with capital letters (like TorusTestProject) - 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in validate/validate.go at the validation rule linked by the issue, then reproduce the prompt with ./torus link in a new folder using a project name with capital letters. Update the project-name error message so it states the lowercase and initial-letter requirements, and verify the prompt reports the clarified rules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100