pkg

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 7 Imported by: 40

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGlazed added in v0.2.0

func InitGlazed(appName string, rootCmd *cobra.Command) error

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 InitViper deprecated

func InitViper(appName string, rootCmd *cobra.Command) error

Deprecated: Use InitGlazed(appName, rootCmd) and configure middlewares via CobraParserConfig.

func InitViperInstanceWithAppName deprecated added in v0.1.20

func InitViperInstanceWithAppName(appName string, configFile string) (*viper.Viper, error)

Deprecated: Avoid Viper instances for config parsing; use config middlewares.

func InitViperWithAppName deprecated added in v0.1.15

func InitViperWithAppName(appName string, configFile string) error

Deprecated: Use Glazed middlewares for config/env and InitGlazed for setup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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