Files
atomctl/cmd/swag.go
2024-12-21 00:00:14 +08:00

21 lines
298 B
Go

package cmd
import "github.com/spf13/cobra"
func CommandSwag(root *cobra.Command) {
cmd := &cobra.Command{
Use: "swag",
Short: "Generate swag docs",
}
cmds := []func(*cobra.Command){
CommandSwagInit,
CommandSwagFmt,
}
for _, c := range cmds {
c(cmd)
}
root.AddCommand(cmd)
}