Using spf13/cobra for CLI command trees in Go
使用 spf13/cobra 构建 Go CLI 命令树的库,涵盖 cobra.Command、RunE 与 Run 的区别、PersistentPreRunE 钩子链、Args 校验器、持久与局部标志、命令分组、ValidArgsFunction、RegisterFlagCompletionFunc、Shell...
安装命令
npx skills add https://github.com/samber/cc-skills-golang --skill golang-spf13-cobra