Documentation
¶
Overview ¶
Package config provides hierarchical configuration management for spgtty. It uses Viper to load configuration from multiple sources in this order (later sources override earlier ones):
- Defaults (hardcoded)
- Global config: ~/.config/spgtty/config.yaml
- Local config: .spgtty.yaml in current directory
- Environment variables: SPGTTY_*
- CLI flags (bound via BindPFlag)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFileUsed ¶
func ConfigFileUsed() string
ConfigFileUsed returns the config file path if one was loaded.
func GetBuildMinify ¶
func GetBuildMinify() bool
GetBuildMinify returns whether minification is enabled.
func GetShellyHost ¶
func GetShellyHost() string
GetShellyHost returns the configured Shelly device host.
func GetShellyScriptID ¶
func GetShellyScriptID() int
GetShellyScriptID returns the configured script slot ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.