diff --git a/pkg/options/seeder.gen.go b/pkg/options/seeder.gen.go new file mode 100644 index 000000000..2d92e742d --- /dev/null +++ b/pkg/options/seeder.gen.go @@ -0,0 +1,33 @@ +package options + +// This file is auto-generated. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// Definitions file that controls how this file is generated: +// pkg/options/seeder.yaml + +type ( + SeederOpt struct { + LogEnabled bool `env:"SEEDER_LOG_ENABLED"` + } +) + +// Seeder initializes and returns a SeederOpt with default values +func Seeder() (o *SeederOpt) { + o = &SeederOpt{} + + fill(o) + + // Function that allows access to custom logic inside the parent function. + // The custom logic in the other file should be like: + // func (o *Seeder) Defaults() {...} + func(o interface{}) { + if def, ok := o.(interface{ Defaults() }); ok { + def.Defaults() + } + }(o) + + return +} diff --git a/pkg/options/seeder.yaml b/pkg/options/seeder.yaml index d1d1a9d32..6ea7efc8a 100644 --- a/pkg/options/seeder.yaml +++ b/pkg/options/seeder.yaml @@ -1,6 +1,3 @@ -imports: - - time - docs: title: Seeder description: A seeder is the initial seeding of a database with fake data.