3
0
corteza/pkg/options/waitFor.go
2020-11-26 11:11:08 +01:00

15 lines
235 B
Go

package options
import (
"strings"
)
// Parses hosts and return slice of strings, one per host
func (o WaitForOpt) GetServices() []string {
if len(o.Services) == 0 {
return []string{}
}
return strings.Split(o.Services, " ")
}