rage / tmc-langs-rust

A library and CLI for supporting different programming languages in the TestMyCode programming assignment evaluator.
https://tmc.mooc.fi/
Apache License 2.0
8 stars 9 forks source link

Include exercise IDs in exercise download result data #110

Closed jolampi closed 3 years ago

jolampi commented 3 years ago

Desired behavior: download-or-update-course-exercises --exercise-id 98208 should return

{
  "output-kind": "output-data",
  "status": "finished",
  "message": "downloaded or updated exercises",
  "result": "executed-command",
  "data": {
    "output-data-kind": "exercise-download",
    "output-data": {
      "downloaded": [
        {
          "course-slug": "test-python-random-testcourse",
          "exercise-slug": "osa07-20_oma_ohjelmointikieli3",
          "path": "~/.../osa07-20_oma_ohjelmointikieli3",
          "id": 98208 // included here
        }
      ],
      "skipped": []
    }
  }
}