We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
set -a
set +a
set -a makes it so that every assignment has an implicit export in front of it. set +a turns this off.
export
This makes it really easy to keep configuration in a file like this (which is compatible with Docker's --env option and EnvironmentFile in systemd):
--env
EnvironmentFile
SECRET_BASE=qweasd4321 SPECIAL_KEY=ghfdwqu98
and then export its variables (eg. setting up an environment for a script):
set -a; . config_file; set +a
The text was updated successfully, but these errors were encountered:
More of a pro-tip than a style issue. These really aren't actionable for me, but I do encourage you to start a guide or something.
Sorry, something went wrong.
Yeah, this was the tip I was thinking of in #20 (comment)
No branches or pull requests
set -a
makes it so that every assignment has an implicitexport
in front of it.set +a
turns this off.This makes it really easy to keep configuration in a file like this (which is compatible with Docker's
--env
option andEnvironmentFile
in systemd):and then export its variables (eg. setting up an environment for a script):
The text was updated successfully, but these errors were encountered: