Allow Windows config file to be read from other locations

Open
#899 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Start by locating the Windows config-file handling and the configure command entry point. Check how the current AppData path is selected, then verify that a portable executable-directory location and a user-specified --config location behave as described, with AppData remaining the fallback.

Written by the indexing model from the issue text.

Description

In reference to issue #149 it would be nice to be able to have an entirely portable version of Exercism by ensuring that the config file, which on Windows is currently placed in C:\Users\[username]\AppData\Roaming\exercism\user.json, can be read from either the same folder where the exercism.exe executable is located, or by allowing a --config parameter on the configure command allowing the user to specify their own location for the user.json file.

Defaulting to attempting to read the user.json file from the same folder as the exercism.exe executable and falling back to then searching the user's AppData folder (as above) would be a great way to allow all exercism-related files to be stored within the same top-level folder, allowing for a truly portable version of Exercism.

Dominant language
Go
Stars
1.4k
Forks
363
Avg merge
6d 13h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from exercism/cli

All issues in exercism/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.