exercism / exercism/cli

[New command] `exercism cd`

Open
#944 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.4k
Forks
363
Avg merge
6d 13h
Merged PRs (30d)
2

Description

### Problem

We find newcomers raising issues unable to run test and submit commands. Recent example: https://github.com/exercism/exercism/issues/5313 but I have seen many before. They usually don't `cd` into the exercise directory before running commands and are confused by all the errors.

### Feature Request

We have `exercism workspace` command which prints workspace path. It would be nice to have a command to `cd` into exercise directory given a track and exercise slug.

```bash
exercism cd track slug
```

We can then modify our READMEs asking users to run this command before running commands like `test` and `submit`. It will also take care of cross-platform paths with forward and backward slashes which installation/exercise instructions don't have to worry about.

### Alternatives

We can use workspace command with bash eval, but I am not sure if this will work with windows.

```bash
cd `exercism workspace`/javascript/hello-world
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.