by pitched · 1w ago · 0 comments
You can disable the linter if you want to use custom verbs, but I find their focus on consistency refreshing. There's no Bash version of https://learn.microsoft.com/en-us/powershell/scripting/devel... and the end result is that everybody just sort of does something and the most common behaviour is what sticks (most of the time).
Compare:
$files | % { ...do stuff... }
for file in "${files[@]}"; do ...stuff...; done
I guess by "boilerplate" you mean param blocks. Those replace argparse and switch blocks that are invariably longer. You didn't count those, did you. You don't have to write param blocks: function foo ($param) { ...do stuff... }
But then you only get basic tab-completion. (Which is still more than bash gives you.)The unapproved-verb warning is easily disabled, come on. It's a linter. You use linters, yes? You configure them?