Skip to content

add boolean format options#38

Merged
etagwerker merged 2 commits intomainfrom
feature/add-bool-format
Sep 20, 2021
Merged

add boolean format options#38
etagwerker merged 2 commits intomainfrom
feature/add-bool-format

Conversation

@kindoflew
Copy link
Copy Markdown
Contributor

Closes #34

Description:
Adds:

  • when case for 'bool' and 'boolean'
  • boolean? method to check variable
  • relevant tests for boolean ENV variables

Additional thought:
Since ENV variables are strings, this just checks that it equals either 'true' or 'false'. Francois pointed out that it should maybe also cover both of those capitalized as well.

I will abide by the code of conduct.

@kindoflew kindoflew requested a review from bronzdoc September 17, 2021 15:44
Copy link
Copy Markdown
Member

@etagwerker etagwerker left a comment

Choose a reason for hiding this comment

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

@kindoflew Looks good! 👍

Could you please add a note about this change to the README and the CHANGELOG?

Thanks!

@kindoflew
Copy link
Copy Markdown
Contributor Author

kindoflew commented Sep 20, 2021

Updated both!

Any thoughts on case sensitivity of true and false? I'm not really sure what best/common practice is when using booleans in .env files.

@etagwerker etagwerker merged commit 1b27053 into main Sep 20, 2021
@etagwerker etagwerker deleted the feature/add-bool-format branch September 20, 2021 14:02
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.

[REQUEST] A bool format

2 participants