posts module now reads config values from config module #26
No reviewers
Labels
No Label
bug
compatibility
documentation
duplicate
enhancement
future release
help wanted
invalid
non-code
question
refactor
testing
this release
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cmccabe/linkulator2#26
Loading…
Reference in New Issue
No description provided.
Delete Branch "refactor_posts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is further work on issues #14 and #17.
Configuration values, like the location of the data files, is now stored in module config. This means that the values can be configured once, and then reused in every module.
This is similar to the way that Bombadillo structures configuration, which has more features like user configuration, and system default configuration.
Currently only the data directory and data file are configured, and are used only in the posts module. The glob path is also present, as a possible idea for issue #25.
Let me know what you think!
So, instead of defining the data file name each time you perform some operation, you can import config.CONFIG and use the value from there. If it ever needs to change, it can be changed in once place.
This is a good change. I dig it. 👍