cslarsen / wpm

Typeracer-like console app for measuring your WPM
GNU Affero General Public License v3.0
322 stars 48 forks source link

Allow specifying a custom config file. #53

Open pedmiston opened 4 years ago

pedmiston commented 4 years ago

Augments the Config class to accept an optional filename parameter to specify a custom config file. Adds an argument to the CLI to pass the config file through to the Config class.

Adds tests to ensure existing functionality is maintained, and paths are expanded to abspaths properly. Adds a class variable "persist" to the Config class to prevent writing files to disk during testing.

pedmiston commented 4 years ago

:wave: I'm a user of wpm and appreciate all the work that has gone into it! I'd like to offer to contribute to the project. I believe this MR would resolve #42 and may allow us to close #43 as a compromise solution. This would resolve a desire of mine to be able to specify a custom config file as well.