feat: add the ability to specify a custom mailto for all cron output

This commit is contained in:
Jose Diaz-Gonzalez
2023-08-19 23:59:00 -04:00
parent a433508fb1
commit c23e878e7d
12 changed files with 187 additions and 5 deletions

11
plugins/cron/set.go Normal file
View File

@@ -0,0 +1,11 @@
package cron
import "errors"
func validateSetValue(appName string, key string, value string) error {
if key == "mailto" && appName != "--global" {
return errors.New("Property cannot be specified on a per-app basis")
}
return nil
}