From 017790d0e3e1c65346f1836c694ff3e2cdb7c989 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Wed, 13 Mar 2019 12:13:40 -0700 Subject: [PATCH] ref(action): remove ParseShowOutputFormat Signed-off-by: Matthew Fisher --- pkg/action/show.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/pkg/action/show.go b/pkg/action/show.go index 8d1389f1d..d12cabc71 100644 --- a/pkg/action/show.go +++ b/pkg/action/show.go @@ -41,22 +41,6 @@ func (o ShowOutputFormat) String() string { return string(o) } -func ParseShowOutputFormat(s string) (out ShowOutputFormat, err error) { - switch s { - case ShowAll.String(): - out, err = ShowAll, nil - case ShowChart.String(): - out, err = ShowChart, nil - case ShowValues.String(): - out, err = ShowValues, nil - case ShowReadme.String(): - out, err = ShowReadme, nil - default: - out, err = "", ErrInvalidFormatType - } - return -} - // Show is the action for checking a given release's information. // // It provides the implementation of 'helm show' and its respective subcommands.