DISCOVERED IN HACKER NEWS
Cobra
Cobra: a product linked in Hacker News recommendation discussions.
Productivity
1Recommendation signals
1Sources
2024-03-27Latest mention
Why does HN talk about it?
Automatically selected excerpts in their original language. Read the full discussion for context.
I use https://github.com/spf13/cobra https://github.com/spf13/cobra religiously for this kind of thing - it handles all the annoying corner cases of parsing flags, and also has an intuitive notion of subcommands (with basic usage/help text generated) for picking which task you want to run with positional arguments.Read the full discussion