exercism / cli

A Go based command line tool for exercism.org.
https://exercism.org/docs/using/solving-exercises/working-locally
MIT License
1.34k stars 361 forks source link

Fetch next exercise #1042

Open marcesdan opened 2 years ago

marcesdan commented 2 years ago

Hi! Time ago you could fetch the next exercise through the CLI (or I dreamed it?)

It is currently possible to do it?

miwojc commented 2 years ago

it would be great if cli supported more than just download and submit, for example getting the recommended, locked, unlocked, easy, medium, hard exercises list so that one can download exercise and start working on it without using website...

NobbZ commented 2 years ago

@marcesdan That has been years ago, during "v1", when there was an implied order of exercises.

This order was often understood as wrong/unfortunate/hard, so this has been weakened into dependency graphs that unlock many exercises after doing a single one.

So there is not single next exercise to do, but instead you have to choose from a pool of available exercises which you want to do next.

miwojc commented 2 years ago

there is not single next exercise to do

on python track i have a lot of 'available' exercises, but only one 'recommended' exercise. i was thinking it would be nice to: get a lit of exercises with cli and download the 'recommended' one without the need to go to the website.

image
danisztls commented 2 years ago

It would be great if Exercism CLI tool supported this feature and I don't see any blocker. In between I wrote a Shell script to do the same. It downloads only unlocked exercises and ignore those that already exist locally.

https://github.com/danisztls/exercism/blob/main/get-exercises

halfdan commented 2 years ago

Seconding everything that was said before me. There may be no "next" exercise, but having the CLI provide me with filters that help me select the next exercise would be great.

DeepSpace2 commented 4 months ago

I started to implement this. It is fairly easy to achieve only for the recommended exercise, but I really wanted to list all of the exercises and let the user choose. Since we don't have API docs yet (see my comment on https://github.com/exercism/exercism/issues/4087#issuecomment-2227140096) it will be hard since I didn't find a way to tell which exercise the user already started working on (ie available/in-progress status).

NiloCK commented 2 months ago

it will be hard since I didn't find a way to tell which exercise the user already started working on (ie available/in-progress status).

Can we inspect $EXERCISM_DIR/$TRACK/ as a list of active / complete exercises?