Recommend repos on commands error
- Dominant language
- Go
- Stars
- 46.3k
- Forks
- 9k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 89
Description
### Describe the feature or problem you’d like to solve
When I'm pulling a repo from a generic git server, I expect to be knowing fully which repo I want to pull, where it is situated and how to best do it.
When I'm using the github CLI, I expect the tool to help me by fixing the typos I may make, since it has access to a broader range of info than the generic case.
Example:
```
❯ gh repo clone adacore/training-material
GraphQL: Could not resolve to a Repository with the name 'adacore/training-material'. (repository)
[firing up a browser and connecting to adacore's github and using search feature to see that I made a typo]
❯ gh repo clone adacore/training_material
Cloning into 'training_material'...
```
The tool didn't help me with my typo, and since the command was longer to type than a simple git clone, it was a net loss of time to use it.
### Proposed solution
Provide a simple typo correction mechanism on the repo's organization (comparing to orgs you're part of) and on the repo's name. That would come a long way to help save time in those kind of "was it a dash or an undescore?" typos. Having the following output would be great:
```
❯ gh repo clone adacore/training-material
GraphQL: Could not resolve to a Repository with the name 'adacore/training-material'. (repository)
'adacore/training_material' exists, did you make a typo?
gh repo clone adacore/training_material
[copy-pasting the proposed solution]
❯ gh repo clone adacore/training_material
Cloning into 'training_material'...
```
as for the wrong org
```
❯ gh repo clone adcore/training_material
GraphQL: Could not resolve to a Repository with the name 'adcore/training_material'. (repository)
'adacore/training_material' exists, did you make a typo?
gh repo clone adacore/training_material
[copy-pasting the proposed solution]
❯ gh repo clone adacore/training_material
Cloning into 'training_material'...
```
Contributor guide
Assessment
This issue has not been assessed yet.