From b9fe27025960b8e488bfe6d1390a0f8275c2ddf2 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Tue, 19 Apr 2016 12:59:48 -0400 Subject: [PATCH] Migrate volume commands to cobra. Signed-off-by: Daniel Nephin --- opts/opts.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opts/opts.go b/opts/opts.go index 0b09981778..05d5497161 100644 --- a/opts/opts.go +++ b/opts/opts.go @@ -163,6 +163,11 @@ func (opts *MapOpts) String() string { return fmt.Sprintf("%v", map[string]string((opts.values))) } +// Type returns a string name for this Option type +func (opts *MapOpts) Type() string { + return "map" +} + // NewMapOpts creates a new MapOpts with the specified map of values and a validator. func NewMapOpts(values map[string]string, validator ValidatorFctType) *MapOpts { if values == nil {