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

Enhancement, transform the output to several single flag expressions, in one line #7

Open
leobm opened this issue May 21, 2022 · 0 comments

Comments

@leobm
Copy link

leobm commented May 21, 2022

Something that sometimes can also be useful.
You may have seen in the Makefile "demo-convert" that I transform the output again. So that one has e.g. the following format -e [ENV_NAME1]=[ENV_VALUE1] -e [ENV_NAME2]=[ENV_VALUE2].....

Various tools can also be passed environment variables as individual flags. E.g. also docker run:
https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file

Once you can pass a .env file directly or you can pass each environment variable using the -e flag.
What would be cool, if I could create this output already directly via a switch with your envrun tool. E.g. a flag --flag-ouput-name or so.
But maybe that's already too much for a simple tool, it was just an idea that came to me today. Just forget it if you don't think it makes sense.

Best,
Felix

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