feat: run gen provider after routes, run fmt after gen commands

This commit is contained in:
Rogee
2024-12-21 11:34:24 +08:00
parent f7504d57f9
commit 9cd4dcaeb2

View File

@@ -15,9 +15,10 @@ import (
func CommandGenRoute(root *cobra.Command) { func CommandGenRoute(root *cobra.Command) {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "route", Use: "route",
Short: "generate routes", Short: "generate routes",
RunE: commandGenRouteE, RunE: commandGenRouteE,
PostRunE: commandGenProviderE,
} }
root.AddCommand(cmd) root.AddCommand(cmd)