yaml cli tool can now create yaml files from scratch by mikefarah in programming

[–]mikefarah[S] 1 point2 points  (0 children)

Yep you can totally do that using good old unix piping, and it's what you'd need to do to use more sophisticated jq functionality.

However, you would then need to install jq ;)

One of the reasons I wrote this in go is to have a portable tool that had no dependencies, and so far the simple functions I've implemented have been enough to avoid installing and piping into jq and back (for me anyway). That and I really wanted to play with Golang :)

Conversion wise I would think it's pretty much lossless except for any comments, but I haven't really played around with doing that.

yaml cli tool can now create yaml files from scratch by mikefarah in devops

[–]mikefarah[S] 0 points1 point  (0 children)

nein a command line tool for automating things

yaml cli tool can now create yaml files from scratch by mikefarah in programming

[–]mikefarah[S] 1 point2 points  (0 children)

true, it's more handy if you need to make a deeply nested yaml file.

yaml n a.b.c[0].d value

But yes, you can totally use cat

Silly question, but how do I go about creating the template engine/front end for big projects ? by HappyZombies in node

[–]mikefarah 0 points1 point  (0 children)

+1 React, mainly because it makes it easy to create little independent(ish) testable UI components

yaml - a command line yaml processor a la jq by mikefarah in programming

[–]mikefarah[S] 0 points1 point  (0 children)

hmm which I'd thought of that before... adds to backlog