From 63d20f3f7b02f33475049c12e03569a4f67fe810 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 26 Apr 2020 17:52:55 +0200 Subject: Options: "disable" and "ignore-hash" --- pkg/config/config.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pkg') 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, } } -- cgit v1.2.3-70-g09d2