{"id":16787978,"url":"https://github.com/thinkverse/exercism-jq","last_synced_at":"2025-09-24T16:17:10.803Z","repository":{"id":105002771,"uuid":"590554951","full_name":"thinkverse/exercism-jq","owner":"thinkverse","description":"Solutions for Exercism's jq track","archived":false,"fork":false,"pushed_at":"2023-03-16T22:20:38.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T10:13:09.626Z","etag":null,"topics":["exercism","exercism-jq","exercism-solutions","exercism-track","jq"],"latest_commit_sha":null,"homepage":"https://exercism.org/profiles/thinkverse","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinkverse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-18T17:22:24.000Z","updated_at":"2023-05-01T20:36:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1d26961-cb4c-4902-9fd2-2cdb835f5024","html_url":"https://github.com/thinkverse/exercism-jq","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkverse%2Fexercism-jq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkverse%2Fexercism-jq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkverse%2Fexercism-jq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkverse%2Fexercism-jq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkverse","download_url":"https://codeload.github.com/thinkverse/exercism-jq/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950962,"owners_count":20373665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exercism","exercism-jq","exercism-solutions","exercism-track","jq"],"created_at":"2024-10-13T08:16:34.032Z","updated_at":"2025-09-24T16:17:05.754Z","avatar_url":"https://github.com/thinkverse.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exercism jq Track\n\n## Running the tests\n\nEach exercise contains a test file.\nRun the tests using the `bats` program.\n\n```bash\nbats test-hello-world.bats\n```\n\n`bats` will need to be installed.\nSee the [Testing on the Bash track][bash] page for instructions to install `bats` for your system.\n\n### bats is implemented in bash\n\nThe bats file is a bash script, with some special functions recognized by the `bats` command.\nYou'll see some tests that look like\n\n```sh\njq -f some-exercise.jq \u003c\u003c\u003c \"{some,json,here}\"\n```\n\nThat `\u003c\u003c\u003c` syntax is a bash [Here String][here-string].\nIt sends the string on the right-hand side into the standard input of the program on the left-hand side.\nIt is ([approximately][so]) the same as\n\n```sh\necho \"{some,json,here}\" | jq -f some-exercise.jq\n```\n\n## Help for assert functions\n\nThe tests use functions from the [bats-assert][bats-assert] library.\nHelp for the various `assert*` functions can be found there.\n\n## Skipped tests\n\nSolving an exercise means making all its tests pass.\nBy default, only one test (the first one) is executed when you run the tests.\nThis is intentional, as it allows you to focus on just making that one test pass.\nOnce it passes, you can enable the next test by commenting out or removing the\n\n    [[ $BATS_RUN_SKIPPED == true ]] || skip\n\nannotations prepending other tests.\n\n## Overriding skips\n\nTo run all tests, including the ones with `skip` annotations, you can run:\n\n```bash\nBATS_RUN_SKIPPED=true bats test-some-exercise.bats\n```\n\nIt can be convenient to use a wrapper function to save on typing: in `bash` you can do:\n\n```bash\nbats() {\n    BATS_RUN_SKIPPED=true command bats *.bats\n}\n```\n\nThen run tests with just:\n\n```bash\nbats\n```\n\n[bash]: https://exercism.org/docs/tracks/bash/tests\n[bats-assert]: https://github.com/bats-core/bats-assert\n[here-string]: https://www.gnu.org/software/bash/manual/bash.html#Here-Strings\n[so]: https://unix.stackexchange.com/a/80372/4667\n\n## Submitting your solution\n\nYou can submit your solution using the `exercism submit hello-world.jq` command.\nThis command will upload your solution to the Exercism website and print the solution page's URL.\n\nIt's possible to submit an incomplete solution which allows you to:\n\n- See how others have completed the exercise\n- Request help from a mentor\n\n## Need to get help?\n\nIf you'd like help solving the exercise, check the following pages:\n\n- The [jq track's documentation](https://exercism.org/docs/tracks/jq)\n- [Exercism's programming category on the forum](https://forum.exercism.org/c/programming/5)\n- The [Frequently Asked Questions](https://exercism.org/docs/using/faqs)\n\nShould those resources not suffice, you could submit your (incomplete) solution to request mentoring.\n\nNeed help?\n\n- Go to the [Exercism Community forum](https://forum.exercism.org) to get support and ask questions (or just chat!)\n  - Use the [Exercism Support](https://forum.exercism.org/c/support/8) category if you face any issues with working in the web editor, or downloading or submitting your exercises locally.\n  - Use the [Programming:jq](https://forum.exercism.org/c/programming/jq/133) category for jq-specific topics.\n- [StackOverflow](https://stackoverflow.com/questions/tagged/jq) can be used to search for your problem and see if it has been answered already.\n  You can also ask and answer questions.\n- [Github issue tracker](https://github.com/exercism/jq/issues) is where we track our development and maintainance of `jq` exercises in exercism.\n  If none of the above links help you, feel free to post an issue here.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkverse%2Fexercism-jq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkverse%2Fexercism-jq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkverse%2Fexercism-jq/lists"}