add-run-command - #50
Conversation
using mock for subprocess.call
…rs loaded from file
|
any news on merge ... ? |
|
Hi, sorry for keeping you guys waiting, this looks amazing! I'll have sometime today to look into it and then merge release. Thanks @sloev |
theskumar
left a comment
There was a problem hiding this comment.
Hi @sloev, i tried the dotenv and it seems it removes the existing env variable and keeps what's in the .env file only. Ideally it should only update the non-existing variables, i.e. behavior of environ.set_dafault. https://github.com/theskumar/python-dotenv/blob/master/dotenv/main.py#L27
How to reproduce:
# .env file
FOO=BAR
- Create a file called
testrun.sh
!# /bin/bash
echo "From .env" $FOO
echo "From system env" $HOME
chmod a+x testrun.shthen usedotenv run testrun.sh
|
Thanks for the feedback. |
|
all fixed in 0d5e22c now using |
3 similar comments
|
Given a Uninstalled and re-install the latest code from this PR. Now the run the Do you get the same error, or it's just me? |
|
No i didnt get the same error. I will get back to you. |
|
I think it is a non populated 'file' arg |
|
I pulled out this idea and created https://github.com/uranusjr/python-dotenv-run. It uses |
|
Done in #105 |
I think it would be neat if the
dotenvcli tool had an option to run a given commandline WITH the environment vars sourced from specified file, like a RUNNER.