oosh: turn annotations into complete CLIs. Bash for Bash :D

Wait 5 sec.

From my original gist 9 years ago: https://gist.github.com/bruno-de-queiroz/a1c9e5b24b6118e45f4eb2402e69b2a4 I've finally polished into a framework that turns bash function annotations into complete CLIs. Annotate with #@flag -e|--env ENV "staging" enum(dev,staging,prod) and get parsing, validation, help generation, and shell completion out of the box. Works on bash 3.2+ (stock macOS), 6-17ms overhead. Includes a scaffolder, linter, and profiler. Demo + repo: https://github.com/bruno-de-queiroz/oosh   submitted by   /u/Specific_Music_234 [link]   [comments]