After rebase

This commit is contained in:
Naveen Gogineni
2022-10-05 22:10:22 -04:00
parent c472192257
commit d724a63144
4 changed files with 32 additions and 37 deletions

View File

@@ -39,11 +39,11 @@ func (gfs *Spec) SortedFlagTypes() []*FlagType {
}
type FlagTypeConfig struct {
SkipInterfaces []string `yaml:"skip_interfaces"`
StructFields []*FlagStructField `yaml:"struct_fields"`
TypeName string `yaml:"type_name"`
ValuePointer bool `yaml:"value_pointer"`
DestinationPointer bool `yaml:"destination_pointer"`
SkipInterfaces []string `yaml:"skip_interfaces"`
StructFields []*FlagStructField `yaml:"struct_fields"`
TypeName string `yaml:"type_name"`
ValuePointer bool `yaml:"value_pointer"`
NoDestinationPointer bool `yaml:"no_destination_pointer"`
}
type FlagStructField struct {
@@ -77,7 +77,7 @@ func (ft *FlagType) DestinationPointer() bool {
return false
}
return ft.Config.DestinationPointer
return ft.Config.NoDestinationPointer
}
func (ft *FlagType) TypeName() string {