mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 16:21:13 +00:00
Bump spf13/pflag
This commit is contained in:
parent
2f7479ac23
commit
814b8a3a21
2
Godeps/Godeps.json
generated
2
Godeps/Godeps.json
generated
@ -686,7 +686,7 @@
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/spf13/pflag",
|
||||
"Rev": "b084184666e02084b8ccb9b704bf0d79c466eb1d"
|
||||
"Rev": "08b1a584251b5b62f458943640fc8ebd4d50aaa5"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/stretchr/objx",
|
||||
|
1
Godeps/_workspace/src/github.com/spf13/pflag/.travis.yml
generated
vendored
1
Godeps/_workspace/src/github.com/spf13/pflag/.travis.yml
generated
vendored
@ -5,6 +5,7 @@ language: go
|
||||
go:
|
||||
- 1.3
|
||||
- 1.4
|
||||
- 1.5
|
||||
- tip
|
||||
|
||||
install:
|
||||
|
8
Godeps/_workspace/src/github.com/spf13/pflag/string_slice.go
generated
vendored
8
Godeps/_workspace/src/github.com/spf13/pflag/string_slice.go
generated
vendored
@ -1,6 +1,7 @@
|
||||
package pflag
|
||||
|
||||
import (
|
||||
"encoding/csv"
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
@ -21,7 +22,12 @@ func newStringSliceValue(val []string, p *[]string) *stringSliceValue {
|
||||
}
|
||||
|
||||
func (s *stringSliceValue) Set(val string) error {
|
||||
v := strings.Split(val, ",")
|
||||
stringReader := strings.NewReader(val)
|
||||
csvReader := csv.NewReader(stringReader)
|
||||
v, err := csvReader.Read()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !s.changed {
|
||||
*s.value = v
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user