Multi-line env variables #1
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: nicd/dotenv-parser#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First off, thanks for this library! It is working great in my testing so far!
Is it possible to have multi-line env variables? Where there is a literal newline in the file? Although I suppose it isn't truly needed because you can use
\n
to encode it.Good idea! But how would you encode it in the file, besides
\n
?That first option is exactly what I was thinking, and I think of the two it would be the better option because it would be a more general encoding. Using a heredoc feels a little too Elixir specific.
Here's another example:
What I'm worried about is complicating the parser too much. Currently it's very simple since it can go line-by-line.
BTW heredocs are familiar to me from PHP. Maybe we should use that style. 😄
Triple quotes would be also how to do it in Python, so it doesn't feel too Elixir specific to me.
mentioned in merge request !1
mentioned in commit
735e1867f6