Created
July 8, 2023 10:16
-
-
Save lambdaofgod/f4e4ceebf75dec0073645fa7ec03aee6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/exercism/cli/issues/718#issuecomment-1493221436 | |
#!/usr/bin/env bash | |
set -e | |
set -u | |
export track="$1" | |
curl \ | |
--silent --fail \ | |
"https://exercism.org/api/v2/tracks/$track/exercises" \ | |
| sed 's/"slug":"/\n/g' \ | |
| sed 's/",.*$//' \ | |
| grep -v '"exercises":' \ | |
| while read -r slug; do | |
exercism download --track="$track" --exercise="$slug" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment