can pull states from email and fill config file

This commit is contained in:
Bel LaPointe
2022-01-10 00:21:56 -05:00
parent 366b35d76b
commit 3d76fffdd3
5 changed files with 58 additions and 10 deletions

View File

@@ -13,6 +13,7 @@ type Config struct {
Interval Duration
States []State
Storage []string
Client string
Once bool
Brokers struct {
NTG struct {
@@ -57,7 +58,7 @@ func Get() *Config {
}
func Set(other Config) {
b, err := json.Marshal(other)
b, err := json.MarshalIndent(other, "", " ")
if err != nil {
return
}