wpm icon indicating copy to clipboard operation
wpm copied to clipboard

Allow specifying a custom config file.

Open pedmiston opened this issue 5 years ago • 1 comments

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 avatar Jan 26 '20 21:01 pedmiston

: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.

pedmiston avatar Jan 26 '20 21:01 pedmiston