-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat: add support for raw strings and no interpolation #95
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closed
This reverts commit 92ba2a3.
@petercinibulk this will require some scrutiny, so please hammer at it once you have time 😎 |
techouse
changed the title
feat: add support for raw strings
feat: add support for raw strings and no interpolation
Mar 9, 2024
petercinibulk
approved these changes
Mar 11, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to go! Great work as always and thank you! 🙌🏻
techouse
added a commit
that referenced
this pull request
Mar 11, 2024
### Changes --- Packages with breaking changes: - There are no breaking changes in this release. ### Packages with other changes: - [`envied` - `v0.5.4`](#envied---v054) - [`envied_generator` - `v0.5.4`](#enviedgenerator---v054) --- #### `envied` - `v0.5.4` - **FEAT**: add support for raw strings and no interpolation (#95) - **FEAT**: add @envied annotation with default options (#92) #### `envied_generator` - `v0.5.4` - **FEAT**: add support for raw strings and no interpolation (#95)
Merged
petercinibulk
pushed a commit
that referenced
this pull request
Apr 2, 2024
### Changes --- Packages with breaking changes: - There are no breaking changes in this release. ### Packages with other changes: - [`envied` - `v0.5.4`](#envied---v054) - [`envied_generator` - `v0.5.4`](#enviedgenerator---v054) --- #### `envied` - `v0.5.4` - **FEAT**: add support for raw strings and no interpolation (#95) - **FEAT**: add @envied annotation with default options (#92) #### `envied_generator` - `v0.5.4` - **FEAT**: add support for raw strings and no interpolation (#95)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for raw strings (i.e
r'some string$'
,r'foo$bar#baz%qux'
, etc.) to be passed from env files to generated dart files using either:@Envied(rawStrings: true)
annotation option which will generate allStrings
as raw@EnviedField(rawString: true)
annotation option which will generate only the annotatedString
field as rawExample:
Additionally, I have added the option to disable
$BASH_VAR
interpolation using either:@Envied(interpolate: false)
@EnviedField(interpolate: false)
It should be used in conjunction with
rawString
if the user plans on using any chars that might cause throw exceptions, i.e.$
.Fixes #94