feat: 增强命令帮助文档,添加详细说明和示例

This commit is contained in:
Rogee
2025-09-12 10:33:57 +08:00
parent a96df4d628
commit ee15e0932a
17 changed files with 217 additions and 52 deletions

View File

@@ -6,6 +6,7 @@ func CommandSwag(root *cobra.Command) {
cmd := &cobra.Command{
Use: "swag",
Short: "Generate swag docs",
Long: `Swagger 文档相关命令组:包含 init生成文档与 fmt格式化注释`,
}
cmds := []func(*cobra.Command){
CommandSwagInit,