From 86028454afa496248c2c228c3a91ba71b320382c Mon Sep 17 00:00:00 2001 From: Justin Scott Date: Mon, 19 Jun 2017 18:21:56 -0700 Subject: [PATCH] ADd comments to OutputFormat exported funcs. --- cmd/helm/installer/options.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/helm/installer/options.go b/cmd/helm/installer/options.go index 90511497c..8baa55816 100644 --- a/cmd/helm/installer/options.go +++ b/cmd/helm/installer/options.go @@ -113,12 +113,15 @@ func (opts *Options) valuesMap(m map[string]interface{}) (map[string]interface{} return m, nil } +// OutputFormat defines valid values for init output (json, yaml) type OutputFormat string +// String returns the string value of the OutputFormat func (f *OutputFormat) String() string { return string(*f) } +// Type returns the string value of the OutputFormat func (f *OutputFormat) Type() string { return "OutputFormat" } @@ -128,6 +131,7 @@ const ( fmtYAML = "yaml" ) +// Set validates and sets the value of the OutputFormat func (f *OutputFormat) Set(s string) error { for _, of := range []OutputFormat{fmtJSON, fmtYAML} { if s == string(of) {