-
-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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>
- Loading branch information
1 parent
a1ac5e4
commit 52290f9
Showing
3 changed files
with
198 additions
and
22 deletions.
There are no files selected for viewing
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
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
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