Skip to content
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

Add support for environment variables #110

Merged
merged 8 commits into from
May 25, 2024

Conversation

rradczewski
Copy link
Collaborator

No description provided.

@rradczewski rradczewski force-pushed the feature/add-envvars branch from 2b6235f to 64b56be Compare May 23, 2024 15:28
@rradczewski rradczewski force-pushed the feature/add-envvars branch from f66f8cf to 6e6c62b Compare May 24, 2024 14:19
@@ -0,0 +1 @@
ARGV.each { |arg| puts ENV[arg] }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added this to generalize retrieving env variables between operating systems. Alternatively, we could have each of the tests echo both, e.g. echo $TEST_ENV %TEST_ENV% and assert on either of them being substituted. LMK

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is solid. It might be worth adding tests for Windows in the future if we find it to be strange in some way but I don't expect it's necessary.

@rradczewski rradczewski force-pushed the feature/add-envvars branch from 0217193 to 312b0fa Compare May 24, 2024 15:06
@rradczewski rradczewski force-pushed the feature/add-envvars branch from 312b0fa to 819dfbf Compare May 24, 2024 15:07
@@ -0,0 +1 @@
ARGV.each { |arg| puts ENV[arg] }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is solid. It might be worth adding tests for Windows in the future if we find it to be strange in some way but I don't expect it's necessary.

@SamirTalwar
Copy link
Owner

@rradczewski, this needs a bit of explanation in the README, but otherwise I think it's fine. Would you like to do it or shall I?

@rradczewski
Copy link
Collaborator Author

@rradczewski, this needs a bit of explanation in the README, but otherwise I think it's fine. Would you like to do it or shall I?

I'll do it!

@rradczewski rradczewski force-pushed the feature/add-envvars branch from 1cc5200 to 040a25e Compare May 25, 2024 08:06
@SamirTalwar SamirTalwar enabled auto-merge May 25, 2024 08:19
@SamirTalwar SamirTalwar merged commit 83cd766 into SamirTalwar:main May 25, 2024
8 checks passed
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.

None yet

2 participants