-
-
Notifications
You must be signed in to change notification settings - Fork 246
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 options #131
Merged
Merged
feat: add options #131
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
added decryptor support. added set env support.
removed commented test no longer needed.
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #131 +/- ##
==========================================
+ Coverage 99.14% 99.23% +0.08%
==========================================
Files 1 1
Lines 234 261 +27
==========================================
+ Hits 232 259 +27
Misses 1 1
Partials 1 1
Continue to review full report at Codecov.
|
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
nexoscp
added a commit
to nexoscp/env
that referenced
this pull request
Apr 7, 2022
* Add support for decrypting vars. * Changed from WithEncryption to WithDecrypt. * Moved common functions. * Added tests. * added support for decrypting content of file. * updated tests to support decrypt of file content. * updated readme with info about decrypt. * Fixed typos in readme. * check if decryptor is nil. * increased coverage. * updated example to use real life example. * increased code coverage. * added test for failing on inner struct. * removed commented copy/paste test. * added support for options. added decryptor support. added set env support. * updated name of test. removed commented test no longer needed. * changed to not actually setting env vars when supplying env map. * added support for changing tag name. * made options not mandatory. * removed required from JSON tag. * added required and envDefault. * fix: remove decryptor Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * refactor: no need to be a pointer Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * test: added back missing test Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * refactor: os.Environ Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * docs: readme Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> Co-authored-by: Anders Wallin <touch.dev.null@gmail.com>
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.
based on #128:
decrypt
options.Environment
to beos.Environ
, simplifyinggetOr
closes #128
cc/ @nuttmeister