From a27819d0f6e94e72b32e4a743fb5893b0c468468 Mon Sep 17 00:00:00 2001 From: asoseil Date: Wed, 3 Jan 2018 15:33:07 +0100 Subject: [PATCH] recovery mode options --- .realize.yaml | 8 +++++--- realize/settings.go | 12 ++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.realize.yaml b/.realize.yaml index 3086497..a2586d8 100755 --- a/.realize.yaml +++ b/.realize.yaml @@ -1,10 +1,12 @@ settings: - debug: true + recovery: + events: true + tools: true legacy: force: false interval: 0s server: - status: true + status: false open: true port: 3000 host: localhost @@ -13,7 +15,7 @@ schema: path: . commands: generate: - status: true + status: false install: status: true vet: diff --git a/realize/settings.go b/realize/settings.go index 8a1ea8d..bdc10eb 100644 --- a/realize/settings.go +++ b/realize/settings.go @@ -29,10 +29,14 @@ const ( // Settings defines a group of general settings and options type Settings struct { Files `yaml:"files,omitempty" json:"files,omitempty"` - Recovery bool `yaml:"recovery,omitempty" json:"recovery,omitempty"` - Debug bool `yaml:"debug,omitempty" json:"debug,omitempty"` - FileLimit int32 `yaml:"flimit,omitempty" json:"flimit,omitempty"` - Legacy Legacy `yaml:"legacy" json:"legacy"` + FileLimit int32 `yaml:"flimit,omitempty" json:"flimit,omitempty"` + Legacy Legacy `yaml:"legacy" json:"legacy"` + Recovery Recovery `yaml:"recovery,omitempty" json:"recovery,omitempty"` +} + +type Recovery struct { + Events bool + Tools bool } // Legacy is used to force polling and set a custom interval