github.com/JarrahG/buffalocli@v0.0.0-20230801092127-b85bfd5d395a/internal/cmd/routes/cmd.go (about) 1 package routes 2 3 import ( 4 grifts "github.com/gobuffalo/grift/cmd" 5 "github.com/spf13/cobra" 6 ) 7 8 func Cmd() *cobra.Command { 9 cmd := &cobra.Command{ 10 Use: "routes", 11 Short: "Print all defined routes", 12 RunE: func(c *cobra.Command, args []string) error { 13 return grifts.Run("buffalo task", []string{"routes"}) 14 }, 15 } 16 17 return cmd 18 }