add new enviroment variables and remove cli flags

This commit is contained in:
Adrian Zürcher
2025-11-12 16:07:10 +01:00
parent 7d4d2e4c54
commit 14d2270260
6 changed files with 36 additions and 24 deletions

View File

@@ -4,11 +4,10 @@ import "strings"
type StringSlice []string
func (s *StringSlice) String() string {
return strings.Join(*s, ",")
}
func (s *StringSlice) Set(value string) error {
func (s *StringSlice) Set(value string) {
if strings.Contains(value, ",") {
*s = append(*s, strings.Split(value, ",")...)
return
}
*s = append(*s, value)
return nil
}