-
Notifications
You must be signed in to change notification settings - Fork 204
Add a package for yaml templating #1243
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
Conversation
pkg/yamlutil/yamlutil_test.go
Outdated
| name: "there is an useless blank line", | ||
| yml: ` | ||
| foo: | ||
| - bar | ||
| - baz`, | ||
| path: "$.foo[0]", | ||
| value: "new-text", | ||
| want: []byte(`foo: | ||
| - new-text | ||
| - baz`), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another consideration is this package removes useless empty lines if there is. What do you think about it?
|
Code coverage for golang is
|
|
/lgtm |
|
Thank you :-) |
|
Code coverage for golang is
|
|
Code coverage for golang is
|
|
Thanks. Fixed them. |
|
/approve |
What this PR does / why we need it:
This PR adds a new package which includes functions:
It will depend on the goccy/go-yaml package which lets us handle the yaml AST.
And Let me know another cool name other than
yamlutilif there is.Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: