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

Quote and escape env-file values #682

Merged
merged 1 commit into from
Mar 14, 2018
Merged

Quote and escape env-file values #682

merged 1 commit into from
Mar 14, 2018

Conversation

lox
Copy link
Contributor

@lox lox commented Mar 14, 2018

Follow on from #680 and #643. Changes the env-file format to KEY="VALUES" with values in the quotes escaped.

This won't be compatible with docker (see the horror of moby/moby#12997), but it's the generally accepted standard (https://github.com/bkeepers/dotenv/blob/master/lib/dotenv/parser.rb and https://github.com/joho/godotenv/blob/master/godotenv.go, for example) and it's easy to parse with standard shell tools.

@lox lox requested review from sj26 and keithpitt March 14, 2018 01:42
@lox lox added this to the v3.0.0 milestone Mar 14, 2018
Copy link
Member

@sj26 sj26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good compromise to me. 👍

I do also like the idea of a --json option for a json version, too.

@lox
Copy link
Contributor Author

lox commented Mar 14, 2018

I do also like the idea of a --json option for a json version, too.

@sj26 yeah, me too.

@lox lox merged commit e620f1f into master Mar 14, 2018
@lox lox deleted the quote-env-file-values branch March 14, 2018 05:56
@DazWorrall
Copy link
Contributor

Thanks for the quick work here @lox ❤️

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

Successfully merging this pull request may close these issues.

None yet

4 participants