exercism / exercism/cli

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

Offen
#885 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
1.4k
Forks
363
Ø Merge
6 T. 13 Std.
Gemergte PRs (30 T.)
2

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.