restructure
This commit is contained in:
20
cmd/seed.go
20
cmd/seed.go
@@ -1,22 +1,22 @@
|
||||
/*
|
||||
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
|
||||
*/
|
||||
package cmd
|
||||
|
||||
import (
|
||||
_ "atom/database/seeders"
|
||||
_ "atom/providers"
|
||||
|
||||
"atom/container"
|
||||
"atom/contracts"
|
||||
"log"
|
||||
|
||||
"github.com/rogeecn/atom/container"
|
||||
"github.com/rogeecn/atom/contracts"
|
||||
|
||||
"github.com/brianvoe/gofakeit/v6"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/dig"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
func WithSeeder(rootCmd *cobra.Command) *cobra.Command {
|
||||
rootCmd.AddCommand(seedCmd)
|
||||
return rootCmd
|
||||
}
|
||||
|
||||
// seedCmd represents the seed command
|
||||
var seedCmd = &cobra.Command{
|
||||
Use: "seed",
|
||||
@@ -40,10 +40,6 @@ var seedCmd = &cobra.Command{
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(seedCmd)
|
||||
}
|
||||
|
||||
type SeedersContainer struct {
|
||||
dig.In
|
||||
|
||||
|
||||
Reference in New Issue
Block a user