add new enviroment variables and remove cli flags
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user