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

System Property Activation Strategy #163

Merged
merged 11 commits into from
Jun 2, 2016

Conversation

cpkelley
Copy link
Contributor

Activate a feature based on a system property. The property is string based and is not case sensitive.

Unit and benchmark tests were also added.

@chkal chkal merged commit fc9a54e into togglz:master Jun 2, 2016
@chkal
Copy link
Member

chkal commented Jun 2, 2016

Awesome! Thanks a lot! This looks great! Just merged it! 🍻

One idea: What about making the parameter value optional? So if the users omits the value it would mean: "The feature is active if the system property is set with any value". This way users could simply set something like -DdevMode on the command line without the need to set an actual value. So this would be similar to Maven which allows to disable tests by adding -DskipTests to the command line.

Thoughts?

@ryangardner ryangardner deleted the property-strategy branch June 2, 2016 19:36
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