DISCOVERED IN HACKER NEWS

Cobra

Cobra:从 Hacker News 推荐讨论中自动发现的产品。

效率工具
访问产品网站
1推荐信号
1讨论来源
2024-03-27最近提及

为什么 HN 用户提到它?

自动整理的讨论摘录,保留原始英文。阅读原文了解完整语境。

@GeneralMayhem
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.
阅读完整讨论