feat(init): Start implementing system config
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
19
helpers/models/config.go
Normal file
19
helpers/models/config.go
Normal file
@ -0,0 +1,19 @@
|
||||
package models
|
||||
|
||||
// Config structure represent the main configuration of the project.
|
||||
type Config struct {
|
||||
ProjectName string `yaml:"project_name"`
|
||||
ProjectDescription string `yaml:"project_description"`
|
||||
ProjectOwner string `yaml:"project_owner"`
|
||||
Features FeaturesConfig `yaml:"features"`
|
||||
}
|
||||
|
||||
// FeaturesConfig structure represent the configuration of all possible features.
|
||||
type FeaturesConfig struct {
|
||||
DatabaseModels DatabaseModelsConfig `yaml:"database_models"`
|
||||
}
|
||||
|
||||
// DatabaseModelsConfig structure represent the configuration of the Database Models feature.
|
||||
type DatabaseModelsConfig struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
}
|
@ -2,7 +2,7 @@ package models
|
||||
|
||||
// UserInputParams is a struct containing all fields that can be useful for project generation.
|
||||
type UserInputParams struct {
|
||||
DB bool
|
||||
DatabaseModels bool
|
||||
GoModuleName *string
|
||||
ProjectDescription string
|
||||
ProjectDirectory string
|
Reference in New Issue
Block a user