cli

package
v0.0.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() string

func NewRootCommand

func NewRootCommand() *cobra.Command

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL