The ys
Command
There are different ways to use YS but the most common is to use it via the YS
command-line tool: ys
; a very versatile tool indeed.
There's a lot you can do with ys
including using it like you would use jq
or
yq
one-liners:
$ jq .bar < <(echo '{"foo": 123, "bar": 456, "baz": 789}')
456
$ yq .bar < <(echo -e 'foo: 123\nbar: 456\nbaz: 789')
456
$ ys .bar < <(echo -e 'foo: 123\nbar: 456\nbaz: 789')
456
Each of these tools have their own advantages and we'll be diving deep into those waters soon enough.
Today let's just start by exploring the basic things you can do with the ys
CLI.