-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add feasibility to comment the environment configs in .env.config file #12
Comments
@suthagar23 since JSON does not support comments are you looking to switch to using something other than JSON or make use of a workaround in JSON to allow comments? I could look into a yml alternative instead or you could go with a format like this:
It's not the clearest or cleanest but if well documented you can make it clear to use that format for comments. Happy to work on this if you have an opinion on either way. |
Hi @mjnagel, First thanks for your interest in this. Yes, I also would like to have a YML alternative for this (So users can use Next for the above issue,
So if we are able to add a wrapper to read and remove the commented line(s) from the read file before parsing it, that would be the solution for this.
|
Okay, I see now! Yes I'd be happy to make a parser to remove the comments if you'd like to assign it to me. I'll have to spend a little time just making sure I follow your code's current formatting and structure but I'd be happy to tackle this. Totally agree a YML alternative would be a big leap! |
I have assigned this task to you. Hope to see your plan soon :-) |
@suthagar23 what's the easiest way to test / test if my changes have the desired effect? Working through a func that I think should work... |
@suthagar23 I did some initial testing and this PR should add support for single comments like the example you provided in the issue. Not sure if you're looking for something more in depth to support more types of comments? Happy to expand the solution as needed. |
Yes, as the first step we can add single line comments and can extend up to multi-line comments later. |
The current implement doesn't allow to add comments to the
.env.config
file as follows,Related error :
The text was updated successfully, but these errors were encountered: