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

Pretty formatting default values into multiple lines? #6

Open
LukasKalbertodt opened this issue Oct 21, 2022 · 0 comments
Open

Pretty formatting default values into multiple lines? #6

LukasKalbertodt opened this issue Oct 21, 2022 · 0 comments

Comments

@LukasKalbertodt
Copy link
Owner

LukasKalbertodt commented Oct 21, 2022

Right now all default values are printed in the config template in one line, e.g. # Default value: { foo: 3, bar: 4 } inline-map syntax. If the default values are complex, that's not very pretty to read. Instead it would be nice to have those into multiple lines, e.g.

# Default value:
#   foo: 3
#   bar: 4

Thats a bit tricky to implement, but there are also open questions: when to use one line and when to use multiple ones? Should library users be able to have control over that? Maybe give users even more control over how each default value is formatted? And how to exactly print: see example above, this maybe looks weird?

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

No branches or pull requests

1 participant