-
Notifications
You must be signed in to change notification settings - Fork 117
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
Custom format for GetDescription #48
Comments
That's an interesting proposal, thank you. I think the easiest thing to do would be to simply make a function that takes the formatting function as a parameter, which is where the meta-information about the structure is transmitted. But at the moment all this metainformation is implemented locally, and I don't really want to make it exportable. On the other hand, I don't want to introduce some DSL to describe templates and make library users learn it. Anyway, I need to think about how to do it better and I'll be glad to receive suggestions. |
Hi @ilyakaznacheev For example the interesting code could look like this:
If you think this could be a solution for your library i would create a PR which brings such a functionality. Best regards |
Hi,
i really like your simple approach for env configuration and also the possibility to easily print the env variables.
But i'm not that fully happy with the multiline format for the env variables and currently its pretty hard to adjust it.
So maybe it would be useful to have a possibility to pass an own format for the description lines like
which would be create an output like this
Another maybe more easier approach to implement would be to add an method which returns the parsed metadata so it could be used to print using an own format.
Thanks
The text was updated successfully, but these errors were encountered: