git-project-manager/internal/config/config.go

26 lines
750 B
Go
Raw Normal View History

2023-12-05 21:56:47 +00:00
package config
import "time"
type Config struct {
GitlabHost string `yaml:"gitlabHost" json:"gitlabHost"`
GitlabToken string `yaml:"gitlabToken" json:"gitlabToken"`
LogLevel string `yaml:"logLevel" json:"logLevel" enum:"info,warn,debug,error"`
ProjectPath string `yaml:"projectPath" json:"projectPath"`
Cache cacheConfig `yaml:"cache" json:"cache"`
2023-12-08 21:52:26 +00:00
Dump struct {
Full bool
}
2023-12-05 21:56:47 +00:00
}
type cacheConfig struct {
2023-12-10 04:19:19 +00:00
Ttl time.Duration `yaml:"ttl" json:"ttl"`
File string `yaml:"file" json:"file"`
Load struct {
OwnerOnly bool `yaml:"ownerOnly" json:"ownerOnly"`
} `yaml:"load" json:"load"`
2023-12-07 17:08:56 +00:00
Clear struct {
ClearAliases bool `yaml:"clearAliases" json:"clearAliases"`
} `yaml:"clear" json:"clear"`
2023-12-05 21:56:47 +00:00
}