Skip to content

Pass envirnoment variables to commands #21

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

Open
StayPirate opened this issue Apr 19, 2024 · 0 comments
Open

Pass envirnoment variables to commands #21

StayPirate opened this issue Apr 19, 2024 · 0 comments

Comments

@StayPirate
Copy link
Owner

It could be helpful some times to initialize or overwrite environmenet variables for that command.

Pretending a --env option is implemented for that, an example could be:

secbox --env PYTHONPATH=/opt/imtools python3.11 -m imtools.im help

It should also work for appending data, like:

secbox --env PYTHONPATH=$PYTHONPATH:/opt/imtools python3.11 -m imtools.im help

The --env option could be passed multiple time.

secbox --env PYTHONPATH=$PYTHONPATH:/opt/imtools --env ABC=DEF python3.11 -m imtools.im help
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

No branches or pull requests

1 participant