package genflags
import "github.com/urfave/cli/v2/internal/genflags"
Index ¶
- Variables
- func TypeName(goType string, fc *FlagTypeConfig) string
- type FlagStructField
- type FlagType
- func (ft *FlagType) GenerateFlagInterface() bool
- func (ft *FlagType) GenerateFmtStringerInterface() bool
- func (ft *FlagType) GenerateRequiredFlagInterface() bool
- func (ft *FlagType) GenerateVisibleFlagInterface() bool
- func (ft *FlagType) StructFields() []*FlagStructField
- func (ft *FlagType) TypeName() string
- func (ft *FlagType) ValuePointer() bool
- type FlagTypeConfig
- type Spec
Variables ¶
var ( //go:embed generated.gotmpl TemplateString string //go:embed generated_test.gotmpl TestTemplateString string )
Functions ¶
func TypeName ¶
func TypeName(goType string, fc *FlagTypeConfig) string
Types ¶
type FlagStructField ¶
type FlagType ¶
type FlagType struct { GoType string Config *FlagTypeConfig }
func (*FlagType) GenerateFlagInterface ¶
func (*FlagType) GenerateFmtStringerInterface ¶
func (*FlagType) GenerateRequiredFlagInterface ¶
func (*FlagType) GenerateVisibleFlagInterface ¶
func (*FlagType) StructFields ¶
func (ft *FlagType) StructFields() []*FlagStructField
func (*FlagType) TypeName ¶
func (*FlagType) ValuePointer ¶
type FlagTypeConfig ¶
type FlagTypeConfig struct { SkipInterfaces []string `yaml:"skip_interfaces"` StructFields []*FlagStructField `yaml:"struct_fields"` TypeName string `yaml:"type_name"` ValuePointer bool `yaml:"value_pointer"` }
type Spec ¶
type Spec struct { FlagTypes map[string]*FlagTypeConfig `yaml:"flag_types"` PackageName string `yaml:"package_name"` TestPackageName string `yaml:"test_package_name"` UrfaveCLINamespace string `yaml:"urfave_cli_namespace"` UrfaveCLITestNamespace string `yaml:"urfave_cli_test_namespace"` }
func (*Spec) SortedFlagTypes ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal/genflags/cmd | |
internal/genflags/cmd/genflags |
- Version
- v2.11.4
- Published
- Aug 14, 2022
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 2 hours ago –
Tools for package owners.