diff options
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/config.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go index 1b95f61..b24a9e8 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -37,6 +37,8 @@ var DefaultGlobalOptions = GlobalOptions{ type Options struct { MinFreq *int `yaml:"min-frequency"` InclImages *bool `yaml:"include-images"` + Disable *bool `yaml:"disable"` + IgnHash *bool `yaml:"ignore-hash"` } func (opt *Options) mergeFrom(other Options) { @@ -46,6 +48,12 @@ func (opt *Options) mergeFrom(other Options) { if opt.InclImages == nil { opt.InclImages = other.InclImages } + if opt.IgnHash == nil { + opt.IgnHash = other.IgnHash + } + if opt.Disable == nil { + opt.Disable = other.Disable + } } // Default feed options @@ -57,6 +65,8 @@ func init() { DefaultFeedOptions = Options{ MinFreq: &one, InclImages: &fal, + IgnHash: &fal, + Disable: &fal, } } |