cli icon indicating copy to clipboard operation
cli copied to clipboard

Fetch next exercise

Open marcesdan opened this issue 3 years ago • 7 comments

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

It is currently possible to do it?

marcesdan avatar Jun 05 '22 08:06 marcesdan

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

miwojc avatar Jun 06 '22 04:06 miwojc

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

NobbZ avatar Jun 09 '22 07:06 NobbZ

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

miwojc avatar Jun 09 '22 07:06 miwojc

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

danisztls avatar Jun 10 '22 05:06 danisztls

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.

halfdan avatar Nov 11 '22 12:11 halfdan

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

DeepSpace2 avatar Jul 13 '24 23:07 DeepSpace2