-
-
Notifications
You must be signed in to change notification settings - Fork 313
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 config (that properly sorts) #175
Conversation
b48b679
to
8248454
Compare
* Defaults to `false` to keep original behavior * Toggle indent length
* Update config.pp with pretty params * Update service.pp with pretty params
Wow, nice work, this is great! |
8248454
to
6a50294
Compare
Thanks! 😄 I updated the tests for the function as well and the credit goes to you (@teaforthecat) for writing such awesome tests in the original PR #165 👍 |
I added this function to a gist so it can be used for other things as well https://gist.github.com/aj-jester/e0078c38db9eb7c1ef45 |
Thank you @aj-jester. I still think that json is for machines and that pretty printing is for |
pretty config (that properly sorts)
@solarkennedy Thanks dude. I agree with you, and I too prefer external tools for pretty. I just took this as a challenge for myself to see if it was even possible. I'm glad it turned out the way it did |
This is very much appreciated. Thanks guys! |
Generate pretty consul config, initially suggested by @teaforthecat.
pretty_config
param, defaults tofalse
.consul_sorted_json()
.consul_sorted_json()
.❗ view it without whitespace