feature request: add a `exercism restart` command

Open
#1,018 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

No files or tests are named. Start by locating the CLI command entry points and the existing exercise download flow, then determine how restarting should restore the exercise's current boilerplate while handling confirmation and --force. Done means the example command works for the selected exercise and track without deleting files unexpectedly.

Written by the indexing model from the issue text.

Description

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 ❤️)

Dominant language
Go
Stars
1.4k
Forks
363
Avg merge
6d 13h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from exercism/cli

All issues in exercism/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.