Documentation
¶
Index ¶
- func InitGlazed(appName string, rootCmd *cobra.Command) error
- func InitViper(appName string, rootCmd *cobra.Command) errordeprecated
- func InitViperInstanceWithAppName(appName string, configFile string) (*viper.Viper, error)deprecated
- func InitViperWithAppName(appName string, configFile string) errordeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitGlazed ¶ added in v0.2.0
InitGlazed adds the logging layer to the root command without wiring Viper. Applications should configure Glazed middlewares via CobraParserConfig (AppName, ConfigPath) when building commands, and initialize logging from parsed layers.
func InitViperWithAppName
deprecated
added in
v0.1.15
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.