For my Ruby gem markdown_helper, I’m considering implementing some sort of configuration file.
Thoughts and questions:
-
Where to locate the file:
-
Ideally, in the user’s git directory, in part because the helper is already oriented to a git project.
-
Alternatively, in the user’s home directory.
-
Not in the gem directory, to avoid loss when updating the gem.
-
Other possibilities?
-
If not in the git directory, the file would need to have per-git-project sections.
-
-
When/how to create/update the file:
-
Should not create or update without user consent.
-
Begins with defaults; user can edit.
-
How to update (to add new values) without losing user edits.
-
-
Other considerations?