[–] ldelossa 1y ago ↗ Hello all.I write a lot of shell scripts.I'm usually frustrated with the effort it takes to get argument parsing and shell completion working quickly.So, I wrote a tiny ZSH framework for writing terse scripts. If you adhere to the constraints in the framework you get:1. Command completion with support for nested commands (think, kubectl like cli). 2. Argument parsing and validation 3. Argument completionIf it looks cool try it out. Contributions welcome.
1 comment
[ 4.0 ms ] story [ 16.7 ms ] threadI write a lot of shell scripts.
I'm usually frustrated with the effort it takes to get argument parsing and shell completion working quickly.
So, I wrote a tiny ZSH framework for writing terse scripts. If you adhere to the constraints in the framework you get:
1. Command completion with support for nested commands (think, kubectl like cli). 2. Argument parsing and validation 3. Argument completion
If it looks cool try it out. Contributions welcome.