Add Cron interval to config

This commit is contained in:
Tom Wiesing 2022-12-07 11:02:44 +01:00
parent f52fe6abf3
commit 52dbfbf56e
No known key found for this signature in database
6 changed files with 21 additions and 6 deletions

View file

@ -6,6 +6,7 @@ import (
"regexp"
"strconv"
"strings"
"time"
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
"github.com/FAU-CDI/wisski-distillery/pkg/fsx"
@ -116,3 +117,8 @@ func ParseSlug(env environment.Environment, s string) (string, error) {
}
return s, nil
}
// ParseDuration parses a time.Duration
func ParseDuration(env environment.Environment, s string) (time.Duration, error) {
return time.ParseDuration(s)
}