Skip to content

Expand boolean environment values - #9

Merged
cmilesio merged 1 commit into
mainfrom
feat/expanded-bool-values
Aug 12, 2026
Merged

Expand boolean environment values#9
cmilesio merged 1 commit into
mainfrom
feat/expanded-bool-values

Conversation

@cmilesio

Copy link
Copy Markdown
Member

What

Extend GetBool, Scope.GetBool, and MustGetBool to accept case-insensitive, whitespace-tolerant yes/no and on/off values in addition to the existing strconv.ParseBool vocabulary. Apply the same parsing rules to fallback strings and required values.

Why

GoForj configuration already uses these common environment forms in some generated runtime policies. Keeping the vocabulary in the env library removes duplicated parsing logic and gives every consumer consistent boolean semantics.

@cmilesio
cmilesio merged commit 68e3c68 into main Aug 12, 2026
2 checks passed
@cmilesio
cmilesio deleted the feat/expanded-bool-values branch August 12, 2026 16:45
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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