github.com/JarrahG/buffalocli@v0.0.0-20230801092127-b85bfd5d395a/internal/cmd/generate/cmd.go (about) 1 package generate 2 3 import ( 4 "github.com/spf13/cobra" 5 ) 6 7 func Cmd() *cobra.Command { 8 cmd := &cobra.Command{ 9 Use: "generate", 10 Short: "Generate application components", 11 Aliases: []string{"g"}, 12 } 13 14 cmd.AddCommand(ResourceCmd) 15 cmd.AddCommand(ActionCmd) 16 cmd.AddCommand(TaskCmd) 17 cmd.AddCommand(MailCmd) 18 19 return cmd 20 }