From c6c0f0fd30b9b96d1c9a1cbf90799706bd501458 Mon Sep 17 00:00:00 2001 From: therealmitchconnors Date: Fri, 16 Aug 2019 12:07:51 -0700 Subject: Add first SliceValue implementations --- flag.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'flag.go') diff --git a/flag.go b/flag.go index 9beeda8..60c2038 100644 --- a/flag.go +++ b/flag.go @@ -190,6 +190,12 @@ type Value interface { Type() string } +type SliceValue interface { + Append(string) error + Replace([]string) error + GetSlice() []string +} + // sortFlags returns the flags as a slice in lexicographical sorted order. func sortFlags(flags map[NormalizedName]*Flag) []*Flag { list := make(sort.StringSlice, len(flags)) -- cgit v1.2.3