feat(init): Start implementing system config
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Matthieu 'JP' DERASSE
2022-08-04 10:39:24 +00:00
parent 8688baccb2
commit 48b1739576
5 changed files with 44 additions and 7 deletions

19
helpers/models/config.go Normal file
View 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"`
}

View File

@ -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