exercism / exercism/cli

When inexisting `--track`/`--exercise` options are provided, CLI does not error

オープン
#885 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
1.4k
フォーク
363
平均マージ
6日 13時間
マージ済み PR(30日)
2

説明

# 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`:

```plain
$ 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:

```json
{"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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。