exercism / exercism/cli

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

Đang mở
#885 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
1.4k
Fork
363
Merge trung bình
6 ngày 13 giờ
Pull request đã merge (30 ngày)
2

Mô tả

# 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.