Backfill drop of generated GetDefaultText method
This commit is contained in:
parent
96216756c2
commit
6404f1d1b4
@ -75,16 +75,6 @@ func (f *{{.TypeName}}) TakesValue() bool {
|
|||||||
return "{{.TypeName }}" != "BoolFlag"
|
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}}{{/* /if .GenerateFlagInterface */}}
|
||||||
|
|
||||||
{{end}}{{/* /range .SortedFlagTypes */}}
|
{{end}}{{/* /range .SortedFlagTypes */}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user