exercism / exercism/cli

feature request: add a `exercism restart` command

Open
#1,018 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
1.4k
Forks
363
Avg merge
6d 13h
Merged PRs (30d)
2

Description

## description

Add a command to "revert to exercise start".

Just like in the Web UI:
![image](https://user-images.githubusercontent.com/8508804/147372838-76669909-101e-4ac7-8d7d-7833c8c3902c.png)

My first thought is an use like this:
```bash
exercism restart --exercise=freelancer-rates --track=javascript
```

Maybe ask for a confirmation before getting rid of user's files (and `--force` option to not ask for confirmation).

## use case

I downloaded an exercise a few days ago but only worked on it today and submitted my solution.

After that I went to the Web UI and noticed the exercise was updated (the requirements/functions to be implemented were changed).

I wanted to get the default boilerplate to restart the exercise from scratch and wasn't able to get it via CLI.

(fortunately @SleeplessByte showed to me how to do it via web UI :heart:)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.