feat: add main_test.go
This commit is contained in:
@@ -26,8 +26,8 @@ func Default(providers ...container.ProviderContainer) container.Providers {
|
||||
}, providers...)
|
||||
}
|
||||
|
||||
func Command() atom.Option {
|
||||
return atom.Command(
|
||||
func Options() []atom.Option {
|
||||
return []atom.Option{
|
||||
atom.Name("model"),
|
||||
atom.Short("run model generator"),
|
||||
atom.RunE(Serve),
|
||||
@@ -36,7 +36,11 @@ func Command() atom.Option {
|
||||
cmd.Flags().String("path", "./database/models", "generate to path")
|
||||
cmd.Flags().String("transform", "./database/.transform.yaml", "transform config")
|
||||
}),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
func Command() atom.Option {
|
||||
return atom.Command(Options()...)
|
||||
}
|
||||
|
||||
type Migrate struct {
|
||||
|
||||
Reference in New Issue
Block a user