mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-24 19:12:02 +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",
|
"ImportPath": "github.com/spf13/pflag",
|
||||||
"Rev": "b084184666e02084b8ccb9b704bf0d79c466eb1d"
|
"Rev": "08b1a584251b5b62f458943640fc8ebd4d50aaa5"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/stretchr/objx",
|
"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:
|
go:
|
||||||
- 1.3
|
- 1.3
|
||||||
- 1.4
|
- 1.4
|
||||||
|
- 1.5
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
install:
|
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
|
package pflag
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/csv"
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
@ -21,7 +22,12 @@ func newStringSliceValue(val []string, p *[]string) *stringSliceValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *stringSliceValue) Set(val string) error {
|
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 {
|
if !s.changed {
|
||||||
*s.value = v
|
*s.value = v
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user