Skip to content

Conversation

@glennj
Copy link
Contributor

@glennj glennj commented Mar 3, 2021

This track only contains practice exercises.

script (fish):

cd exercises/practice
for d in *
    set e (string replace --all -- "-" "_" $d)
    jq --arg s {$e}".sh" --arg t {$e}"_test.sh" '
        .files = {
            "solution": [$s],
            "test": [$t],
            "example": [".meta/example.sh"]
        }
    ' $d/.meta/config.json | sponge $d/.meta/config.json
end

pull request template


Reviewer Resources:

Track Policies

This track only contains practice exercises.

script (fish):
```
cd exercises/practice
for d in *
    set e (string replace --all -- "-" "_" $d)
    jq --arg s {$e}".sh" --arg t {$e}"_test.sh" '
        .files = {
            "solution": [$s],
            "test": [$t],
            "example": [".meta/example.sh"]
        }
    ' $d/.meta/config.json | sponge $d/.meta/config.json
end
```
Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@glennj glennj merged commit c82e411 into exercism:main Mar 5, 2021
@glennj glennj deleted the populate-exercise-config-files branch March 5, 2021 00:30
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

Successfully merging this pull request may close these issues.

2 participants