feature: add optional email delay

resolves #256
This commit is contained in:
Simon Aronsson 2019-08-25 13:14:02 +02:00
parent 17cbf86d48
commit ce6ba0801f
3 changed files with 19 additions and 2 deletions

View file

@ -128,6 +128,12 @@ func RegisterNotificationFlags(rootCmd *cobra.Command) {
"",
viper.GetString("WATCHTOWER_NOTIFICATION_EMAIL_TO"),
"Address to send notification emails to")
flags.IntP(
"notification-email-delay",
"",
viper.GetInt("WATCHTOWER_NOTIFICATION_EMAIL_DELAY"),
"Delay before sending notifications, expressed in seconds")
flags.StringP(
"notification-email-server",