News for hackers. Stuff that matters.
Re:jc: Converts the output of popular command-line tools to ... by dj_mc_merlin on Friday December 08, 2023 @09:54AM (#38569754)
What about

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.

Re:jc: Converts the output of popular command-line tools to ... by sesm on Friday December 08, 2023 @12:16PM (#38571445)
jc already has this, see ‘jc dig example.com’ in examples. They call it ‘alternative magic syntax’, but IMO it should be the primary syntax, while piping and second-guessing the previous commands parameters and version should be used only in exceptional cases.
Re:jc: Converts the output of popular command-line tools to ... by jasonjayr on Friday December 08, 2023 @10:40AM (#38570314)
That can get thorny, because it adds another level of shell-quoting/escapes, and that is a notorious vector for security problems.