This package is great! #513
glasser
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, just wanted to share that this package is great. I love the three levels of abstraction that you can parse to. I wanted to be able to parse a YAML file, find a few particular spots, update them in as targeted and formatting-preserving a way as possible, and this package makes it easy. It's particularly nice that I can use a combination of AST and CST, where I use the AST to navigate the file's structure and find the places I want to change, but then use the CST (via
srcToken) to actually make the change.(If anyone's curious how I did that, check out https://github.com/apollographql/argocd-config-updater/blob/main/src/yaml.ts , and one of the files that uses it such as https://github.com/apollographql/argocd-config-updater/blob/main/src/update-promoted-values.ts . Not claiming this is a perfect way of using the package, but it works great for us!)
Beta Was this translation helpful? Give feedback.
All reactions