Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ini package for config file parsing #297

Merged
merged 7 commits into from
Nov 1, 2022

Conversation

JoshuaWilkes
Copy link
Contributor

@JoshuaWilkes JoshuaWilkes commented Oct 28, 2022

This PR swaps out configparser in favour of gopkg.in/ini.v1

The swap is mostly like for like and I have not made an attempt at refactoring our parsing logic in this PR.

The benefit gained from this swap is that comments are now supported in configuration files.

When performing write operations, Granted will no longer remove comments from the configuration files!

The ini package makes it simple to write tests where we define the config files using a string rather than reading and writing to the filesystem

@Eddie023 Eddie023 merged commit 1cda110 into main Nov 1, 2022
@Eddie023 Eddie023 deleted the use-ini-package-for-config-file-parsing branch November 1, 2022 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants