I wonder how they will address versions…
`aws s3 ls | jc —-aws=1.2.3`
What a nightmare.
`aws s3 ls | jc —-aws=1.2.3`
What a nightmare.
I'd expect this to not be a huge problem in practice because this is mostly for those well established unix cli tools of which the output has mostly ossified anyway. Many modern and frequently updated tools support native JSON output.
The s3 sub command annoyingly doesn’t. Which I’m guessing is the reason the GP used that specifically.
jc 'aws sts get-caller-identity' | jq [..]
That way the aws process can be a subprocess of jc, which can read where the binary is and get its version automatically.