packer-cn/command/build/string_slice_value.go

15 lines
242 B
Go
Raw Normal View History

2013-06-04 17:13:02 -04:00
package build
import "strings"
type stringSliceValue []string
func (s *stringSliceValue) String() string {
return strings.Join(*s, ",")
}
func (s *stringSliceValue) Set(value string) error {
*s = strings.Split(value, ",")
return nil
}