mirror of
https://github.com/anotherhadi/default-creds-tui.git
synced 2026-10-05 10:58:25 +02:00
24 lines
503 B
Go
24 lines
503 B
Go
package config
|
|
|
|
import (
|
|
_ "embed"
|
|
)
|
|
|
|
//go:embed default_config.yaml
|
|
var defaultConfig []byte
|
|
|
|
type Config struct {
|
|
Version string `mapstructure:"-"`
|
|
|
|
App struct {
|
|
Mode string `mapstructure:"mode"`
|
|
ApiURL string `mapstructure:"api_url"`
|
|
FocusSearchOnLaunch bool `mapstructure:"focus_search_on_launch"`
|
|
PrintOnEnter bool `mapstructure:"print_on_enter"`
|
|
} `mapstructure:"app"`
|
|
|
|
Keybindings Keybindings `mapstructure:"keybindings"`
|
|
}
|
|
|
|
var Global *Config
|