cli icon indicating copy to clipboard operation
cli copied to clipboard

feature request: add a `exercism restart` command

Open meleu opened this issue 3 years ago • 3 comments

description

Add a command to "revert to exercise start".

Just like in the Web UI: image

My first thought is an use like this:

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:)

meleu avatar Dec 24 '21 21:12 meleu

I've just noticed that the kind of issue I'm trying to solve in this request is related to these ones:

  • #1007
  • #802

meleu avatar Dec 24 '21 21:12 meleu

@meleu added support in this PR: https://github.com/exercism/cli/pull/1032

pedreviljoen avatar Mar 25 '22 20:03 pedreviljoen

+1 for an option to update the exercise without overwriting student solution. @pedreviljoen Is there a way to have your PR looked at? Have you tried tagging any of the maintainers in your PR?

I'm using a shell script to do this, see https://github.com/exercism/cli/issues/1007#issuecomment-1364588189

asarkar avatar Dec 24 '22 21:12 asarkar