github.com/bscott/buffalo@v0.11.1/buffalo/cmd/db.go (about) 1 package cmd 2 3 import ( 4 "github.com/gobuffalo/buffalo/buffalo/cmd/destroy" 5 "github.com/gobuffalo/pop/soda/cmd" 6 "github.com/spf13/cobra" 7 ) 8 9 func init() { 10 11 var destroyCmd = &cobra.Command{ 12 Use: "destroy", 13 Short: "Allows to destroy generated code.", 14 Aliases: []string{"d"}, 15 } 16 17 c := cmd.RootCmd 18 destroyCmd.AddCommand(destroy.ModelCmd) 19 decorate("destroy", destroyCmd) 20 c.AddCommand(destroyCmd) 21 22 c.Use = "db" 23 decorate("db", c) 24 RootCmd.AddCommand(c) 25 }