3
0
Denis Arh 40f0b15f64 Refactor old seeder code and restructure commands
corteza
    users
        synthetic
            generate
            remove
    compose
        records
            synthetic
                generate
                remove
2022-11-18 10:55:18 +01:00

26 lines
361 B
Go

package commands
import (
"context"
"github.com/spf13/cobra"
)
type (
serviceInitializer interface {
InitServices(ctx context.Context) error
}
)
func Base(ctx context.Context, app serviceInitializer) (cmd *cobra.Command) {
cmd = &cobra.Command{
Use: "compose",
Aliases: []string{"cmp"},
}
cmd.AddCommand(
Records(ctx, app),
)
return
}