Documentation
¶
Overview ¶
Package app provides CLI wiring and process setup for gormdb2struct.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLIConfig ¶
type CLIConfig struct {
Logging LoggingConfig `embed:""`
ConfigPath string `arg:"" optional:"" name:"config" help:"Path to the TOML configuration file." type:"path"`
}
CLIConfig defines the top-level command-line contract.
type GenerateConfigSampleCmd ¶
type GenerateConfigSampleCmd struct {
Out string `name:"out" short:"o" default:"gormdb2struct-sample.toml" help:"Path to write the sample TOML config." type:"path"`
}
GenerateConfigSampleCmd writes a starter TOML configuration file.
type LoggingConfig ¶
type LoggingConfig struct {
Level string `name:"logging.level" enum:"debug,info,warn,error" default:"info" help:"Log level." group:"logging"`
}
LoggingConfig defines CLI-controlled logging options.
Click to show internal directories.
Click to hide internal directories.