-
I wish there was a nicer shell scripting language that simply transpiled to Bash and would generate all this boilerplate code for me. There is https://batsh.org/ which has a nice syntax but it doesn't even support pipes or redirection, making it pretty worthless for shell scripting. I haven't found any other such scripting languages.
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
>The secret sauce is a pseudo-signal provided by bash, called EXIT, that you can trap; commands or functions trapped on it will execute when the script exits for any reason.
"Secret Sauce", why is this secret at all.
Nothing against the author who's helping the ecosystem here, but is there an authoritative guide on Bash that anyone can recommend?
Hopefully something that's portable between Mac & Linux.
The web is full of contradictory guides and shellcheck seems to be the last line of defense.
- https://github.com/koalaman/shellcheck
-
I couldn't find a way to have more than one callback per signal, and created a system to have an array of callbacks:
https://github.com/kidd/scripting-field-guide/blob/master/bo...
A nice bonus is that it also keeps the return value of the last non-callback function, so your script behaves better when called from other scripts.
-
"gradle,https://gradle.org"
-
KeenWrite
Discontinued Free, open-source, cross-platform desktop Markdown text editor with live preview, string interpolation, and math.
https://github.com/DaveJarvis/keenwrite/blob/main/scripts/bu...
My template script provides a way to make user-friendly shell scripts. In a script that uses the template, you define the dependencies and their sources:
DEPENDENCIES=(
-
"warp-packer,https://github.com/Reisz/warp/releases"