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

maintain comments when parsing #192

Open
jamiehaywood opened this issue Aug 8, 2022 · 2 comments · May be fixed by #213
Open

maintain comments when parsing #192

jamiehaywood opened this issue Aug 8, 2022 · 2 comments · May be fixed by #213

Comments

@jamiehaywood
Copy link

It would be good to maintain comments when parsing an stringifying.

I'm not entirely sure how you would implement, but perhaps you could set lines with a # to be undefined and then write them from the object back to a line with just a key and no value?

@dhlavaty
Copy link

+1 for comment support

We use envfile for generating many setup scripts and automations. It would be great, if we could add a comment to the first line of generated files. Like:

# This file was autogenerated. Do not edit by hand.
VAR=abc
...

@leemm
Copy link

leemm commented Mar 30, 2023

I would appreciate this too.

@NamPNQ NamPNQ linked a pull request Apr 19, 2023 that will close this issue
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 a pull request may close this issue.

3 participants