News for hackers. Stuff that matters.
Re:Scripting with Go by hnlmorg on Friday March 11, 2022 @01:10PM (#30643682)
I completely agree.

This is the approach that I took with murex. It comes with a stack of builtins for json, jsonlines, yaml, toml, csv, sqlite3, and others. So you have all the power of data types and intelligent management of structured data but also works with regular POSIX CLI commands without any additional boilerplate code when swapping between murex code and coreutils (et al). So one could say I’ve spent a fair amount of time studying this point you’ve raised :)

Re:Scripting with Go by klabb3 on Friday March 11, 2022 @03:02PM (#30645287)
https://github.com/lmorg/murex

(Don't be afraid to self promote!)

One obvious benefit over what's suggested in the article is that you can use it interactively first, with autocomplete and such goodies, and transition smoothly to a script later.

Re:Scripting with Go by freedomben on Friday March 11, 2022 @04:15PM (#30646103)
GP has promoted murex a few times on HN recently, which doesn't bother me, but if I were them I'd be sensitive to not wanting to overdo it as well.
Re:Scripting with Go by cyberge99 on Friday March 11, 2022 @02:44PM (#30645074)
Is murex open source? A quick search of murex shell presented me with beautiful seashells.
Re:Scripting with Go by zto on Friday March 11, 2022 @02:53PM (#30645191)
A quick Google for murex cli -sea yields: https://murex.rocks and https://github.com/lmorg/murex, looks like a promising tool
Re:Scripting with Go by darrenf on Friday March 11, 2022 @03:48PM (#30645805)
Not to mention the URL in @hnlmorg’s HN profile!
Re:Scripting with Go by arunix on Saturday March 12, 2022 @03:07PM (#30654441)
Is fish style autosuggestion possible or planned in murex? Thanks!