Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch next exercise #1042

Open
marcesdan opened this issue Jun 5, 2022 · 7 comments
Open

Fetch next exercise #1042

marcesdan opened this issue Jun 5, 2022 · 7 comments

Comments

@marcesdan
Copy link

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

It is currently possible to do it?

@miwojc
Copy link

miwojc commented Jun 6, 2022

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
Copy link
Member

NobbZ commented Jun 9, 2022

@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
Copy link

miwojc commented Jun 9, 2022

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
Copy link

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
Copy link
Contributor

halfdan commented Nov 11, 2022

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
Copy link

DeepSpace2 commented Jul 13, 2024

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 exercism/exercism#4087 (comment)) 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
Copy link

NiloCK commented Sep 7, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants