Skip to content

Conversation

appleboy
Copy link
Owner

  • Add a new flag allenvs to pass all environment variables to the shell script
  • Implement the AllEnvs functionality in the exec function
  • Add a new function findEnvs to find all environment variables with specified prefixes
  • Add tests for the findEnvs function and the AllEnvs functionality

appleboy added 2 commits July 23, 2023 09:27
- Add a new flag `allenvs` to pass all environment variables to the shell script
- Implement the `AllEnvs` functionality in the `exec` function
- Add a new function `findEnvs` to find all environment variables with specified prefixes
- Add tests for the `findEnvs` function and the `AllEnvs` functionality

Signed-off-by: appleboy <appleboy.tw@gmail.com>
Signed-off-by: appleboy <appleboy.tw@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #264 (e8a8c8e) into master (80cecf1) will increase coverage by 1.26%.
The diff coverage is 68.42%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master     #264      +/-   ##
==========================================
+ Coverage   37.19%   38.46%   +1.26%     
==========================================
  Files           2        2              
  Lines         449      468      +19     
==========================================
+ Hits          167      180      +13     
- Misses        282      288       +6     
Impacted Files Coverage Δ
main.go 0.00% <0.00%> (ø)
plugin.go 100.00% <100.00%> (ø)

@appleboy appleboy merged commit 32510c8 into master Jul 23, 2023
@appleboy appleboy deleted the envs branch July 23, 2023 01:41
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