When inexisting `--track`/`--exercise` options are provided, CLI does not error
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 38/100
Research direction
Use the entry point exercism download --track=erlang --exercise=hello to reproduce the behavior and inspect the download command's validation path. Done means nonexistent track/exercise combinations produce an error instead of reporting success or creating empty metadata.
Written by the indexing model from the issue text.
Description
Current behaviour
When one provides an inexisting combination of track and exercise switches on the terminal, then the CLI will report successful download to $(exercism workspace)/users:
$ exercism download --track=erlang --exercise=hello
Downloaded to
/home/nmelzer/exercism/users
After the download there will be a .exercism folder with a metadata.json in it. It has the following contents:
{"track":"","exercise":"","id":"","url":"","handle":"","is_requester":false,"auto_approve":false}
Expected behaviour
The CLI should tell us with an error message that the track/exercise does not exist.
- Dominant language
- Go
- Stars
- 1.4k
- Forks
- 363
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 2
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.
More from exercism/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Fetch next exercise Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100