github.com/segakazzz/buffalo@v0.16.22-0.20210119082501-1f52048d3feb/buffalo/cmd/routes.go (about) 1 package cmd 2 3 import ( 4 grifts "github.com/markbates/grift/cmd" 5 "github.com/spf13/cobra" 6 ) 7 8 func init() { 9 decorate("routes", routesCmd) 10 RootCmd.AddCommand(routesCmd) 11 } 12 13 var routesCmd = &cobra.Command{ 14 Use: "routes", 15 Short: "Print all defined routes", 16 RunE: func(c *cobra.Command, args []string) error { 17 return grifts.Run("buffalo task", []string{"routes"}) 18 }, 19 }