Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exercism/tcl
Exercism exercises in Tcl.
https://github.com/exercism/tcl
community-contributions-paused exercism-track
Last synced: about 1 month ago
JSON representation
Exercism exercises in Tcl.
- Host: GitHub
- URL: https://github.com/exercism/tcl
- Owner: exercism
- License: mit
- Created: 2018-12-01T16:22:22.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T11:53:52.000Z (8 months ago)
- Last Synced: 2024-05-01T11:25:33.386Z (8 months ago)
- Topics: community-contributions-paused, exercism-track
- Language: Tcl
- Homepage: https://exercism.org/tracks/tcl
- Size: 1.52 MB
- Stars: 9
- Watchers: 10
- Forks: 14
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Exercism Tcl Track
![build status](https://travis-ci.org/exercism/tcl.svg?branch=master)
Exercism exercises in [Tcl](https://www.tcl-lang.org/).
## Setup
Tcl installation is described in the [INSTALLATION](docs/INSTALLATION.md) document.
## Contributing
Thank you so much for contributing! :tada:
Please read about how to [get involved in a track](https://github.com/exercism/docs/tree/master/contributing-to-language-tracks). Be sure to read the Exercism [Code of Conduct](https://exercism.org/code-of-conduct).
We welcome pull requests of all kinds. No contribution is too small.
We encourage contributions that provide fixes and improvements to existing exercises. Please note that this track's exercises must conform to the Exercism-wide standards described in the [documentation](https://github.com/exercism/docs/tree/master/language-tracks/exercises). If you're unsure about how to make a change, then go ahead and open a GitHub issue (see below) and we'll discuss it.
## Exercise Tests
At the most basic level, Exercism is all about the tests. You can read more about how we think about test suites in [the Exercism documentation](https://github.com/exercism/docs/blob/master/language-tracks/exercises/anatomy/test-suites.md).
Tcl test files use the [`tcltest`](https://www.tcl-lang.org/man/tcl8.6/TclCmd/tcltest.htm) core package. Here are two excellent introductory overviews:
* [Getting started with tcltest](https://web.archive.org/web/20080617153002/www.tclscripting.com/articles/apr06/article1.html)
* [Getting Started with tcltest](https://wuhrr.wordpress.com/2011/03/28/getting-started-with-tcltest/) (goes more in-depth)## Opening an Issue
If you plan to make significant or breaking changes, please [open an issue](https://github.com/exercism/tcl/issues) so we can discuss it first. If this is a discussion that is relevant to more than just the Tcl track, please open an issue in [exercism/discussions](https://github.com/exercism/discussions/issues).
## Submitting a Pull Request
Pull requests should be focused on a single exercise, issue, or conceptually cohesive change. Please refer to Exercism's [pull request guidelines](https://github.com/exercism/docs/blob/master/contributing/pull-request-guidelines.md).
Please follow the coding standards for Tcl. (_TODO: reference one..._)
### Verifying Your Change
Before submitting your pull request, you'll want to verify the changes in two ways:
* Run all the tests for the Tcl exercises
* Run an Exercism-specific linter to verify the trackAll the tests for Tcl exercises can be run from the top level of the repo with
```sh
$ bin/check_exercise_versions
# ensure you have committed your code before running the following:
$ bin/test_all_exercises
```Note that the `test_all_exercises` script will **overwrite** the `"slug".tcl` and then check it out again from git when the test is complete. If you have not committed your code, you risk losing that template file.
To run the linter, use the [`configlet`](https://github.com/exercism/configlet) tool:
```sh
$ path/to/configlet lint .
```## Contributing a New Exercise
Please see the documentation about [adding new exercises](https://github.com/exercism/docs/blob/master/you-can-help/make-up-new-exercises.md).
Note that:
- Each exercise must stand on its own. Do not reference files outside the exercise directory. They will not be included when the user fetches the exercise.
- Exercises should use only the Tcl core libraries.
- Exercises must conform to the Exercism-wide standards described in [the documentation](https://github.com/exercism/docs/tree/master/language-tracks/exercises).
- Each exercise should have a test suite, an example solution and a template file for the real implementation. Use the `canonical-data.json` file for the exercise from the [problem-specifications](https://github.com/exercism/problem-specifications) repo to guide your test implementation.
- The CI build expects files to be named using the following convention:exercises/
└── hello-world/ # (dir name == "slug" name)
├── .meta
│ ├── hints.md # (optional)
│ └── version # (required)
├── example.tcl
├── hello-world.tcl # "slug".tcl
├── hello-world.test # "slug".test
└── README.md # (generated)- use `configlet generate . --only $slug` to generate the README file. The contents of `.meta/hints.md` will be incorporated into the README if you need to add Tcl-specific information.
- Please do not commit any configuration files or directories inside the exercise.
- Be sure to reference the new exercise at the appropriate place in the `config.json` file.
- Core exercises are placed at the top of the config file, in the order we want them to occur.
- Side exercises (that are unlocked when a core exercise is completed) are placed below, grouped and ordered by their parent core exercise.