Skip to content

Refactoring env var case convert to convert each segment between separator#746

Open
11alieberman wants to merge 1 commit intorust-cli:mainfrom
11alieberman:fix-env-case-convert
Open

Refactoring env var case convert to convert each segment between separator#746
11alieberman wants to merge 1 commit intorust-cli:mainfrom
11alieberman:fix-env-case-convert

Conversation

@11alieberman
Copy link

Currently, it looks like when you are parsing the environment variables into the config and you have some key with multiple segments separated by the ., (key1.key2.key3) when you do the case convert for a case like Pascal, it will result in (Key1.key2.key3). I am not sure if this is intended, because I would think the result should be (Key1.Key2.Key3), where each segment is individually case converted.

This PR aims to refactor the case conversion to convert each segment and not just the first segment.

Also aims to address #693

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.

1 participant