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

Support System Properties as a configuration source #20

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

51-code
Copy link
Contributor

@51-code 51-code commented Nov 11, 2024

Fixes #6 .

Adds support for System Properties. Changing properties after the constructor call doesn't have effect on the object as the Properties are immediately made an unmodifiable map.

Configurations with Properties can't really fail so the asMap() function doesn't throw here, using DefaultConfigurations by passing in PropertiesConfiguration would therefore be pointless.

README additions this time too.

@51-code 51-code added the enhancement New feature or request label Nov 11, 2024
@51-code 51-code requested a review from elliVM November 11, 2024 13:33
@51-code 51-code self-assigned this Nov 11, 2024
Copy link

@elliVM elliVM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small change about the variable name but otherwise looks good

@kortemik
Copy link
Member

@51-code please rebase

Copy link

@elliVM elliVM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kortemik kortemik merged commit 22b98b8 into teragrep:main Nov 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for System properties
3 participants