pgcli icon indicating copy to clipboard operation
pgcli copied to clipboard

Using environment variables to connect via ssh

Open shivan-s opened this issue 2 years ago • 2 comments
trafficstars

Description

This is not an issue but more of a feature request.

I love this tool. I am wondering if it's possible to look into the environment variables when connecting via ssh.

Say you have a .env or a .env.local with DB_URL as a set environment variable that you can ssh into.

I am happy to contribute if possible but would like some feedback on your thoughts. Thanks in advance.

shivan-s avatar Oct 28 '23 22:10 shivan-s

@shivan-s Certainly, feel free to contribute! I believe adding python-dotenv to the requirements and calling load_dotenv would do it.

j-bennet avatar Oct 28 '23 23:10 j-bennet

Great thank you!

shivan-s avatar Oct 29 '23 07:10 shivan-s