gouick/cmd/generateDB.go

25 lines
382 B
Go
Raw Normal View History

/*
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
*/
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
// dbCmd represents the db command
var dbCmd = &cobra.Command{
Use: "db",
Short: "Generate Database Struct from pkg/dbmodels/schema.yaml",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("db called")
},
}
func init() {
generateCmd.AddCommand(dbCmd)
}