mirror of
https://github.com/helm/helm.git
synced 2026-08-08 17:11:18 +00:00
ref(action): remove ParseShowOutputFormat
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user