Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigPath ¶
func GetConfigPath() string
func NewRootCommand ¶
func SaveStormConfig ¶
func SaveStormConfig(config *StormConfig, path string) error
Types ¶
type StormConfig ¶
type StormConfig struct {
Version string `yaml:"version"`
Project string `yaml:"project"`
Database struct {
Driver string `yaml:"driver"`
URL string `yaml:"url"`
MaxConnections int `yaml:"max_connections"`
} `yaml:"database"`
Models struct {
Package string `yaml:"package"`
} `yaml:"models"`
Migrations struct {
Directory string `yaml:"directory"`
Table string `yaml:"table"`
AutoApply bool `yaml:"auto_apply"`
} `yaml:"migrations"`
ORM struct {
GenerateHooks bool `yaml:"generate_hooks"`
GenerateTests bool `yaml:"generate_tests"`
GenerateMocks bool `yaml:"generate_mocks"`
} `yaml:"orm"`
Schema struct {
StrictMode bool `yaml:"strict_mode"`
NamingConvention string `yaml:"naming_convention"`
} `yaml:"schema"`
}
StormConfig represents the storm.yaml configuration structure
func LoadStormConfig ¶
func LoadStormConfig(path string) (*StormConfig, error)
Click to show internal directories.
Click to hide internal directories.