Backfill drop of generated GetDefaultText method

This commit is contained in:
Dan Buch 2022-10-10 10:57:06 -04:00
parent 96216756c2
commit 6404f1d1b4
Signed by: meatballhat
GPG Key ID: A12F782281063434

View File

@ -75,16 +75,6 @@ func (f *{{.TypeName}}) TakesValue() bool {
return "{{.TypeName }}" != "BoolFlag"
}
{{if .GenerateDefaultText}}
// GetDefaultText returns the default text for this flag
func (f *{{.TypeName}}) GetDefaultText() string {
if f.DefaultText != "" {
return f.DefaultText
}
return f.GetValue()
}
{{end}}
{{end}}{{/* /if .GenerateFlagInterface */}}
{{end}}{{/* /range .SortedFlagTypes */}}