Documentation
¶
Index ¶
- Variables
- func CamelCase(s string) string
- func FirstLower(s string) string
- func FirstUpper(s string) string
- func GetGeneratedPath() string
- func GoName(s string) string
- func IsVerbose() bool
- func LoadCsv[T Validater, D any](basePath string, callBack func(*T, *D) (bool, error), data *D) ([]T, error)
- func Lower(s string) string
- func LowerNoSpaces(s string) string
- func MarkdownTable(header []string, rows [][]string) string
- func Pad(s string, width int) string
- func Plural(s string) string
- func Proper(s string) string
- func SetVerbose(v bool)
- func Singular(s string) string
- func Upper(s string) string
- func ValidateEnums(path string, enums []string) (bool, string)
- func ValidateTemplate(content, templatePath string) error
- func ValidateTemplatesFolder() error
- func VerboseLog(args ...interface{})
- func WriteCode(existingFn, newCode string) (bool, error)
- type CodeBase
- func (cb *CodeBase) Description() string
- func (cb *CodeBase) FinishLoad(unused string, baseTypes []Structure, options []Option, ...) error
- func (cb *CodeBase) Generate()
- func (cb *CodeBase) GroupList(filter string) []Command
- func (cb *CodeBase) Handlers() string
- func (cb *CodeBase) LoadMembers(basePath string, structMap map[string]Structure) error
- func (cb *CodeBase) LoadStructures(basePath string, callBack func(*Structure, *any) (bool, error), ...) error
- func (item *CodeBase) ProcessFile(source, group, reason string) error
- func (item *CodeBase) ProcessGroupFile(source, group, reason string) error
- func (cb *CodeBase) RouteToGroup(route string) string
- func (cb *CodeBase) SortedStructs() []Structure
- func (c *CodeBase) String() string
- func (cb *CodeBase) SummaryTag(filter string) string
- func (cb *CodeBase) TagSummary() string
- func (cb *CodeBase) TypeToGroup(typ string) string
- func (cb *CodeBase) Validate() error
- func (cb *CodeBase) Version(verbose bool) string
- func (cb *CodeBase) Views() string
- type Command
- func (c *Command) AddCaps() string
- func (c *Command) AliasStr() string
- func (c *Command) AnyCrud() string
- func (c *Command) BaseTypes() string
- func (c *Command) CapsMapAndArray() (map[string]bool, []string)
- func (c *Command) Clean()
- func (c *Command) Cruds() string
- func (c *Command) DefaultsApi(showConfig bool) string
- func (c *Command) Deprecated() string
- func (c *Command) DeprecatedTransfer() string
- func (c *Command) EnsConvert1() string
- func (c *Command) EnsConvert2() string
- func (c *Command) Enums1() string
- func (c *Command) Enums2() string
- func (c *Command) Enums3() string
- func (c *Command) Example() string
- func (c *Command) FirstPositional() string
- func (c *Command) FlagAliases() string
- func (c *Command) FuzzerInits() string
- func (c *Command) FuzzerSwitches() string
- func (c *Command) GetGlobs() string
- func (c *Command) GoDefs() string
- func (c *Command) GroupAlias(reason string) string
- func (c *Command) GroupIntro(reason string) string
- func (c *Command) GroupMarkdowns(reason, filter string) string
- func (c *Command) GroupMenu(reason string) string
- func (c *Command) GroupName() string
- func (c *Command) GroupTitle() string
- func (c *Command) HandlerCode() string
- func (c *Command) HandlerRows() string
- func (c *Command) HasAddrs() bool
- func (c *Command) HasCrud() bool
- func (c *Command) HasDeprecated() bool
- func (c *Command) HasEnums() bool
- func (c *Command) HasExample() bool
- func (c *Command) HasFlagAliases() bool
- func (c *Command) HasHidden() bool
- func (c *Command) HasNotes() bool
- func (c *Command) HasPositionals() bool
- func (c *Command) HasSdkEndpoints() bool
- func (c *Command) HelpDataModels() string
- func (c *Command) HelpIntro() string
- func (c *Command) HelpLinks() string
- func (c *Command) HelpNotes() string
- func (c *Command) HelpText() string
- func (c *Command) IsRoute() bool
- func (c *Command) OptFields() string
- func (c *Command) PackageComments() string
- func (c *Command) Pkg() string
- func (item *Command) ProcessFile(source, group, reason string) error
- func (c *Command) ProducedByDescr() string
- func (c *Command) ProducedByList() string
- func (c *Command) PyGlobals() string
- func (c *Command) PyOptions() string
- func (c *Command) ReadmeFooter() string
- func (c *Command) ReadmeName() string
- func (c *Command) RequestOpts() string
- func (c *Command) ReturnTypes() string
- func (c *Command) ReturnTypesArray() []string
- func (c *Command) SdkEndpoints() string
- func (c *Command) TestLogs() string
- func (c *Command) TsOptions() string
- func (c *Command) TsOptions2() string
- func (c *Command) TsReturns() string
- func (c *Command) TsTypes() string
- func (c *Command) TypeToGroup(t string) string
- func (c *Command) YamlGlobals() string
- type Facet
- func (f *Facet) Divider() string
- func (f *Facet) HasDivider() bool
- func (f *Facet) HasViewType() bool
- func (f *Facet) HeaderActionsBe(facet string) string
- func (f *Facet) IsCustom() bool
- func (f *Facet) IsCustomFacet() bool
- func (f *Facet) IsCustomPanel() bool
- func (f *Facet) IsForm() bool
- func (f *Facet) IsTable() bool
- func (f *Facet) NavigateTo() string
- func (f *Facet) NeedsCustomRenderer() bool
- func (f *Facet) NormalizeActions()
- func (f *Facet) RowActionsBe(facet string) string
- func (f *Facet) SingleStore() string
- func (f *Facet) SortFunc() string
- func (f *Facet) ValidateActions() error
- func (f *Facet) ValidateAll() error
- func (f *Facet) ValidatePanel() error
- func (f *Facet) ValidateViewType() error
- type Generator
- type Handler
- type LogMessage
- type Member
- func (m *Member) Align() string
- func (m *Member) BaseType() string
- func (m *Member) Container() string
- func (m *Member) Fmt() string
- func (m *Member) GetColumnLabel() string
- func (m *Member) GetDetailLabel() string
- func (m *Member) GetFormatter() string
- func (m *Member) GoName() string
- func (m *Member) GoType() string
- func (m *Member) HasUpgrade() bool
- func (m *Member) IsAddress(s *Structure) bool
- func (m *Member) IsBool() bool
- func (m *Member) IsCalc() bool
- func (m *Member) IsEmbed() bool
- func (m *Member) IsInit() bool
- func (m *Member) IsItems() bool
- func (m *Member) IsNoTable() bool
- func (m *Member) IsNoTag() bool
- func (m *Member) IsObject() bool
- func (m *Member) IsOmitEmpty() bool
- func (m *Member) IsRemoved() bool
- func (m *Member) IsRequired() bool
- func (m *Member) IsSimpField() bool
- func (m *Member) IsSortable() bool
- func (m *Member) IsString() bool
- func (m *Member) Lower() string
- func (m *Member) LowerSingular() string
- func (m *Member) MarkdownDescription() string
- func (m *Member) MarkdownType() string
- func (m *Member) MarshalCode() string
- func (m *Member) MemTsType() string
- func (m *Member) NeedsPtr() bool
- func (m *Member) ReadOnly() bool
- func (m *Member) SortName() string
- func (m *Member) String() string
- func (m *Member) Tag() string
- func (m *Member) TypeToGroup(t string) string
- func (m *Member) UiType() string
- func (m *Member) UnmarshalCode() string
- func (m Member) Validate() bool
- func (m *Member) Width() int64
- func (m *Member) YamlType() string
- type Option
- func (op *Option) AssignReceive() string
- func (op *Option) Clear() string
- func (op *Option) CmdDefault() string
- func (op *Option) CmdTsType() string
- func (op *Option) CobraPart() string
- func (op *Option) CobraType() string
- func (op *Option) Default() string
- func (op *Option) DefaultApi() string
- func (op *Option) DeprecatedNotDefault() string
- func (op *Option) Deprecator() string
- func (op *Option) DeprecatorIsDefault() string
- func (op *Option) DeprecatorRep() string
- func (op *Option) DescrCaps() string
- func (op *Option) DescriptionEx() string
- func (op *Option) DocType() string
- func (op *Option) EnsConvert() string
- func (op *Option) Enum1() string
- func (op *Option) Enum2() string
- func (op *Option) EnumCases() string
- func (op *Option) EnumChoices() string
- func (op *Option) EnumDef() string
- func (op *Option) EnumList() string
- func (op *Option) EnumMap() string
- func (op *Option) EnumName() string
- func (op *Option) EnumNone() string
- func (op *Option) EnumTag(e string) string
- func (op *Option) EnumTypes() []string
- func (op *Option) FindDeprecator() *Option
- func (op *Option) FlagAliasTarget() string
- func (op *Option) FuzzerSwitch() string
- func (op *Option) GetBools() string
- func (op *Option) GetEnums() string
- func (op *Option) GetNotFuzzed() string
- func (op *Option) GetOthers() string
- func (op *Option) GoDef() string
- func (op *Option) HasEnumAll() bool
- func (op *Option) IsAlias() bool
- func (op *Option) IsApiHidden() bool
- func (op *Option) IsArray() bool
- func (op *Option) IsBool() bool
- func (op *Option) IsConfig() bool
- func (op *Option) IsConfigurableAddr() bool
- func (op *Option) IsCrud() bool
- func (op *Option) IsDeprecated() bool
- func (op *Option) IsEnum() bool
- func (op *Option) IsFlag() bool
- func (op *Option) IsFlagAlias() bool
- func (op *Option) IsFloat() bool
- func (op *Option) IsHidden() bool
- func (op *Option) IsMode() bool
- func (op *Option) IsNullDefault() bool
- func (op *Option) IsNullDefault2() bool
- func (op *Option) IsPositional() bool
- func (op *Option) IsRequired() bool
- func (op *Option) IsSpecialAddr() bool
- func (op *Option) IsStringLike() bool
- func (op *Option) IsVisible() bool
- func (op *Option) IsVisibleDocs() bool
- func (op *Option) JsonTag() string
- func (op *Option) Lower() string
- func (op *Option) ModeType() string
- func (op *Option) OptField() string
- func (op *Option) PreSwitch() string
- func (op *Option) PyHotKey() string
- func (op *Option) RequestOpt() string
- func (op *Option) SdkCoreType() string
- func (op *Option) SdkEndpoint() string
- func (op *Option) SdkIsPublic() bool
- func (op *Option) SomeCases() string
- func (op Option) String() string
- func (op *Option) Stripped() string
- func (op *Option) TestLog() string
- func (op *Option) ToolAssignment() string
- func (op *Option) ToolParameters(forSdk bool) string
- func (op *Option) ToolTurd() string
- func (op *Option) TsEnumTypes() []string
- func (op *Option) TsOption() string
- func (op Option) Validate() bool
- type Store
- type Structure
- func (s *Structure) Addresses() []string
- func (s *Structure) AllActions() []string
- func (s *Structure) CacheIdStr() string
- func (s *Structure) CacheLoc() string
- func (s *Structure) CalcMembers() []string
- func (s *Structure) ClassOrClassGroup() string
- func (s *Structure) DocSortOrder() []Member
- func (s *Structure) EmbedName() string
- func (s *Structure) EmbedType() string
- func (s *Structure) FacetByName(facet string) *Facet
- func (s *Structure) FacetsStr() string
- func (s *Structure) GroupName() string
- func (s *Structure) HandlerStrs() string
- func (s *Structure) Handlers() string
- func (s *Structure) Handlers_inner() string
- func (s *Structure) HasAddresses() bool
- func (s *Structure) HasAutoname() bool
- func (s *Structure) HasCrud() bool
- func (s *Structure) HasCrudActions() bool
- func (s *Structure) HasCustomFacet() bool
- func (s *Structure) HasCustomPanel() bool
- func (s *Structure) HasCustomRenderers() bool
- func (s *Structure) HasDelete() bool
- func (s *Structure) HasDynamicFacets() bool
- func (s *Structure) HasFacets() bool
- func (s *Structure) HasForms() bool
- func (s *Structure) HasNotes() bool
- func (s *Structure) HasRowActions() bool
- func (s *Structure) HasSorts() bool
- func (s *Structure) HasTimestamp() bool
- func (s *Structure) HasTsTypesTypes() bool
- func (s *Structure) HasUpdate() bool
- func (s *Structure) HeaderActionsBe(facet string) string
- func (s *Structure) IsCachable() bool
- func (s *Structure) IsCacheAsGroup() bool
- func (s *Structure) IsFilenameCache() bool
- func (s *Structure) IsMarshalOnly() bool
- func (s *Structure) ItemFullType() string
- func (s *Structure) ItemName() string
- func (s *Structure) ItemType() string
- func (s *Structure) ModelIntro() string
- func (s *Structure) ModelMembers() string
- func (s *Structure) ModelNotes() string
- func (s *Structure) ModelProducers() string
- func (s *Structure) Name() string
- func (s *Structure) Needs(which string) bool
- func (s *Structure) NeedsAddress() bool
- func (s *Structure) NeedsStatement() bool
- func (s *Structure) Num() int
- func (item *Structure) ProcessFile(sourceIn, group, reason string) error
- func (s *Structure) RemoveCallback() string
- func (s *Structure) RowActionsBe(facet string) string
- func (s *Structure) RowActionsFe() string
- func (s *Structure) SortFields() string
- func (s *Structure) SortString() string
- func (s *Structure) SortSwitches() string
- func (s *Structure) Sorts2() string
- func (s *Structure) SortsInstance() string
- func (s *Structure) Stores() []Store
- func (s *Structure) String() string
- func (s *Structure) TsTypeMembers() string
- func (s *Structure) TsTypesTypes() string
- func (s *Structure) UiHotKey() string
- func (s *Structure) UiRouteName() string
- func (s *Structure) UiRouteNum() uint64
- func (s *Structure) UniqueActions() []string
- func (s Structure) Validate() bool
- func (s *Structure) Wants(which string) bool
- type TemplateMetadata
- type Validater
Constants ¶
This section is empty.
Variables ¶
var ( ErrTomlFilesCheck = errors.New("error checking for .toml files") ErrRequirementsNotMet = errors.New("generation requirements not met: either cmd-line-options.csv must exist or classDefinitions folder must exist with at least one .toml file") ErrEmptyTemplatesFolder = errors.New("templates folder exists but is empty; it must contain cmd-line-options.csv and/or classDefinitions/ folder with .toml files") )
var ErrNoTemplateFolder = errors.New("could not find the templates directory")
Functions ¶
func FirstLower ¶
func FirstUpper ¶
func GetGeneratedPath ¶
func GetGeneratedPath() string
func LoadCsv ¶
func LoadCsv[T Validater, D any](basePath string, callBack func(*T, *D) (bool, error), data *D) ([]T, error)
LoadCsv loads a csv file into a Validater (which is any type that implements the Validate() method). The callBack function is called for each record in the csv file. If the callBack function returns false, the record is skipped. If the callBack function returns an error, the function quits and returns the error.
func LowerNoSpaces ¶
func MarkdownTable ¶
func SetVerbose ¶
func SetVerbose(v bool)
func ValidateTemplate ¶
ValidateTemplate validates that EXISTING_CODE markers are properly formatted
func ValidateTemplatesFolder ¶
func ValidateTemplatesFolder() error
ValidateTemplatesFolder checks if the templates folder exists and isn't empty
func VerboseLog ¶
func VerboseLog(args ...interface{})
Types ¶
type CodeBase ¶
type CodeBase struct {
Commands []Command `json:"commands"`
Structures []Structure `json:"structures"`
BaseTypes []Structure `json:"baseTypes"`
}
CodeBase - the top-level structure for the codebase which carries an array of Commands which describe, in combination with the Structures, the command line options, help file text, and SDK definitions.
func LoadCodebase ¶
LoadCodebase loads the two csv files and returns the codebase which contains all the commands (each with its own set of options).
func (*CodeBase) Description ¶
Description - returns the description of the codebase for the openapi.yaml file
func (*CodeBase) FinishLoad ¶
func (*CodeBase) Generate ¶
func (cb *CodeBase) Generate()
Generate generates the code for the codebase using the given templates.
func (*CodeBase) LoadMembers ¶
func (*CodeBase) LoadStructures ¶
func (*CodeBase) ProcessFile ¶
ProcessFile processes a single file, applying the template to it and writing the result to the destination.
func (*CodeBase) ProcessGroupFile ¶
ProcessGroupFile processes a single file, applying the template to it and writing the result to the destination.
func (*CodeBase) RouteToGroup ¶
RouteToGroup - returns the group given a route
func (*CodeBase) SortedStructs ¶
func (*CodeBase) SummaryTag ¶
SummaryTag - returns a summary of the commands used in the helpText
func (*CodeBase) TagSummary ¶
TagSummary - returns a summary of the tags used in the openapi.yaml file
func (*CodeBase) TypeToGroup ¶
TypeToGroup - returns the group given a type
type Command ¶
type Command struct {
Num int `json:"num"`
Folder string `json:"folder,omitempty"`
Route string `json:"route,omitempty"`
Group string `json:"group,omitempty"`
Tool string `json:"tool,omitempty"`
Description string `json:"description,omitempty"`
Options []Option `json:"options,omitempty"`
ReturnType string `json:"return_type,omitempty"`
Attributes string `json:"attributes,omitempty"`
Capabilities string `json:"capabilities,omitempty"`
Handlers []Handler `json:"handlers,omitempty"`
Usage string `json:"usage,omitempty"`
Summary string `json:"summary,omitempty"`
Notes []string `json:"notes,omitempty"`
Sorts []string `json:"sorts,omitempty"`
Aliases []string `json:"aliases,omitempty"`
Productions []*Structure `json:"productions,omitempty"`
// contains filtered or unexported fields
}
func (*Command) DefaultsApi ¶
DefaultsApi for tag {{.DefaultsApi}}
func (*Command) Deprecated ¶
func (*Command) DeprecatedTransfer ¶
func (*Command) EnsConvert1 ¶
EnsConvert1 for tag {{.EnsConvert1}}
func (*Command) EnsConvert2 ¶
EnsConvert2 for tag {{.EnsConvert2}}
func (*Command) FirstPositional ¶
func (*Command) FlagAliases ¶
func (*Command) FuzzerInits ¶
func (*Command) FuzzerSwitches ¶
----------------------------------------------------------------------
func (*Command) GroupAlias ¶
func (*Command) GroupIntro ¶
func (*Command) GroupMarkdowns ¶
func (*Command) GroupTitle ¶
func (*Command) HandlerCode ¶
func (*Command) HandlerRows ¶
func (*Command) HasDeprecated ¶
func (*Command) HasExample ¶
func (*Command) HasFlagAliases ¶
func (*Command) HasPositionals ¶
func (*Command) HasSdkEndpoints ¶
func (*Command) HelpDataModels ¶
func (*Command) PackageComments ¶
func (*Command) ProcessFile ¶
ProcessFile processes a single file, applying the template to it and writing the result to the destination.
func (*Command) ProducedByDescr ¶
func (*Command) ProducedByList ¶
func (*Command) ReadmeFooter ¶
func (*Command) ReadmeName ¶
func (*Command) RequestOpts ¶
RequestOpts for tag {{.RequestOpts}}
func (*Command) ReturnTypes ¶
----------------------------------------------------------------------
func (*Command) ReturnTypesArray ¶
----------------------------------------------------------------------
func (*Command) SdkEndpoints ¶
func (*Command) TsOptions2 ¶
func (*Command) TypeToGroup ¶
func (*Command) YamlGlobals ¶
type Facet ¶
type Facet struct {
DisplayName string `toml:"display_name" json:"display_name"`
Name string `json:"name"`
Label string `toml:"label" json:"label"`
MapKey string `json:"mapKey" toml:"mapKey"`
Store string `json:"store"` // This will be parsed into StoreName and StoreSource
StoreName string `json:"storeName"`
StoreSource string `json:"storeSource"`
Actions []string `toml:"actions" json:"actions"`
Confirms map[string]bool `json:"-" toml:"-"` // actions requiring confirmation (parsed from -confirm suffix)
ViewType string `toml:"viewType" json:"viewType"`
Panel string `toml:"panel" json:"panel"`
Attributes string `json:"attributes"`
IsDynamic bool `json:"isDynamic" toml:"isDynamic"`
Disabled bool `json:"disabled" toml:"disabled"`
NeedsCalcs bool `json:"needsCalcs" toml:"needsCalcs"`
PanelChart bool `json:"panelChart" toml:"panelChart"`
FacetChart bool `json:"facetChart" toml:"facetChart"`
UseMapKey bool `json:"useMapKey" toml:"useMapKey"`
Hidden bool `json:"hidden" toml:"hidden"`
Hideable bool `json:"hideable" toml:"hideable"`
// contains filtered or unexported fields
}
func (*Facet) HasDivider ¶
func (*Facet) HasViewType ¶
func (*Facet) HeaderActionsBe ¶
func (*Facet) IsCustomFacet ¶ added in v6.6.5
func (*Facet) IsCustomPanel ¶ added in v6.6.5
func (*Facet) NavigateTo ¶
func (*Facet) NeedsCustomRenderer ¶ added in v6.6.5
func (*Facet) NormalizeActions ¶
func (f *Facet) NormalizeActions()
NormalizeActions processes any "-confirm" suffix, storing the base action name and a parallel confirmation flag.
func (*Facet) RowActionsBe ¶
func (*Facet) SingleStore ¶
func (*Facet) ValidateActions ¶
func (*Facet) ValidateAll ¶
func (*Facet) ValidatePanel ¶ added in v6.6.5
func (*Facet) ValidateViewType ¶
type Handler ¶
type LogMessage ¶
type Member ¶
type Member struct {
Name string `json:"name,omitempty" csv:"name"`
Type string `json:"type,omitempty" csv:"type"`
StrDefault string `json:"strDefault,omitempty" csv:"strDefault"`
Attributes string `json:"attributes,omitempty" csv:"attributes"`
Section string `json:"section,omitempty" csv:"section"`
DocOrder int `json:"docOrder,omitempty" csv:"docOrder"`
Upgrades string `json:"upgrades,omitempty" csv:"upgrades"`
Description string `json:"description,omitempty" csv:"description"`
Label string `json:"label,omitempty" csv:"label"`
Num int `json:"num"`
IsArray bool `json:"isArray,omitempty"`
IsPointer bool `json:"isPointer,omitempty"`
// contains filtered or unexported fields
}
func (*Member) Fmt ¶ added in v6.7.0
Fmt returns the format hint for this field. If fmt=value is present in attributes, it returns that value; otherwise defaults to the field's Type.
func (*Member) GetColumnLabel ¶ added in v6.6.5
GetColumnLabel returns the appropriate column label for this field
func (*Member) GetDetailLabel ¶ added in v6.6.5
GetDetailLabel returns the appropriate detail label for this field
func (*Member) GetFormatter ¶
GetFormatter returns the appropriate formatter string for this field Updated to preserve CSV semantic types and fix boolean field handling
func (*Member) HasUpgrade ¶
func (*Member) IsOmitEmpty ¶
func (*Member) IsRequired ¶
func (*Member) IsSimpField ¶
func (*Member) IsSortable ¶
func (*Member) LowerSingular ¶
func (*Member) MarkdownDescription ¶
func (*Member) MarkdownType ¶
func (*Member) MarshalCode ¶
MarshalCode writes the writer code for caching this item
func (*Member) TypeToGroup ¶
func (*Member) UnmarshalCode ¶
UnmarshalCode writes the reader code for caching this item
type Option ¶
type Option struct {
Num int `json:"num" csv:"num"`
Folder string `json:"folder" csv:"folder"`
Group string `json:"group" csv:"group"`
Route string `json:"route" csv:"route"`
Tool string `json:"tool" csv:"tool"`
LongName string `json:"longName" csv:"longName"`
HotKey string `json:"hotKey" csv:"hotKey"`
DefVal string `json:"def_val" csv:"def_val"`
Attributes string `json:"attributes" csv:"attributes"`
Handler float64 `json:"handler,omitempty" csv:"handler"`
OptionType string `json:"option_type" csv:"option_type"`
DataType string `json:"data_type" csv:"data_type"`
ReturnType string `json:"return_type,omitempty" csv:"return_type"`
Summary string `json:"summary,omitempty" csv:"summary"`
Usage string `json:"usage,omitempty" csv:"usage"`
Capabilities string `json:"capabilities,omitempty" csv:"capabilities"`
Description string `json:"description,omitempty" csv:"description"`
Enums []string `json:"enums,omitempty"`
DefaultEnum string `json:"default_enum,omitempty"`
GoName string `json:"go_name"`
GoType string `json:"go_type"`
GoSdkName string `json:"go_sdk_name"`
GoSdkType string `json:"go_sdk_type"`
GoOptionsType string `json:"go_options_type"`
// contains filtered or unexported fields
}
func (*Option) AssignReceive ¶
func (*Option) CmdDefault ¶
func (*Option) DefaultApi ¶
func (*Option) DeprecatedNotDefault ¶
func (*Option) Deprecator ¶
func (*Option) DeprecatorIsDefault ¶
func (*Option) DeprecatorRep ¶
func (*Option) DescriptionEx ¶
func (*Option) EnsConvert ¶
func (*Option) EnumChoices ¶
func (*Option) FindDeprecator ¶
func (*Option) FlagAliasTarget ¶
func (*Option) FuzzerSwitch ¶
func (*Option) GetNotFuzzed ¶
func (*Option) HasEnumAll ¶
func (*Option) IsApiHidden ¶
func (*Option) IsConfigurableAddr ¶
func (*Option) IsDeprecated ¶
func (*Option) IsFlagAlias ¶
func (*Option) IsNullDefault ¶
func (*Option) IsNullDefault2 ¶
func (*Option) IsPositional ¶
func (*Option) IsRequired ¶
func (*Option) IsSpecialAddr ¶
func (*Option) IsStringLike ¶
func (*Option) IsVisibleDocs ¶
func (*Option) RequestOpt ¶
func (*Option) SdkCoreType ¶
func (*Option) SdkEndpoint ¶
func (*Option) SdkIsPublic ¶
func (*Option) ToolAssignment ¶
func (*Option) ToolParameters ¶
func (*Option) TsEnumTypes ¶
type Store ¶
type Store struct {
Source string `json:"source,omitempty" toml:"source"`
Name string `json:"name,omitempty" toml:"name"`
// contains filtered or unexported fields
}
func (*Store) HasActions ¶
func (*Store) NeedsBuckets ¶
func (*Store) NeedsCalcs ¶ added in v6.6.5
type Structure ¶
type Structure struct {
Class string `json:"class,omitempty" toml:"class" csv:"class"`
DisplayName string `json:"display_name,omitempty" toml:"display_name"`
DocGroup string `json:"doc_group,omitempty" toml:"doc_group" csv:"doc_group"`
DocRoute string `json:"doc_route,omitempty" toml:"doc_route"`
DocDescr string `json:"doc_descr,omitempty" toml:"doc_descr" csv:"doc_descr"`
DocNotes string `json:"doc_notes,omitempty" toml:"doc_notes" csv:"doc_notes"`
UiRoute string `json:"ui_route,omitempty" toml:"ui_route"`
UiIcon string `json:"ui_icon,omitempty" toml:"ui_icon"`
ProducedBy string `json:"produced_by,omitempty" toml:"produced_by"`
ContainedBy string `json:"contained_by,omitempty" toml:"contained_by"`
Parent string `json:"parent,omitempty" toml:"parent"`
Children string `json:"children,omitempty" toml:"children"`
CacheAs string `json:"cache_as,omitempty" toml:"cache_as"`
CacheBy string `json:"cache_by,omitempty" toml:"cache_by"`
CacheType string `json:"cache_type,omitempty" toml:"cache_type"`
StoreType string `json:"store_type,omitempty" toml:"store_type"`
DisableGo bool `json:"disable_go,omitempty" toml:"disable_go"`
DisableDocs bool `json:"disable_docs,omitempty" toml:"disable_docs"`
Attributes string `json:"attributes,omitempty" toml:"attributes"`
Sorts string `json:"sorts,omitempty" toml:"sorts"`
FacetOrder []string `json:"facetOrder,omitempty" toml:"facetOrder"`
MenuOrder int `json:"menuOrder,omitempty" toml:"menuOrder"`
MenuLabel string `json:"menuLabel,omitempty" toml:"menuLabel"`
MenuPosition string `json:"menuPosition,omitempty" toml:"menuPosition"`
Members []Member `json:"members,omitempty" toml:"members"`
Facets []Facet `json:"facets,omitempty" toml:"facets"`
Route string `json:"-" toml:"-"`
Producers []string `json:"-" toml:"-"`
ChildTabs []string `json:"-" toml:"-"`
// contains filtered or unexported fields
}
func ReadTomlFiles ¶ added in v6.6.5
ReadTomlFiles reads TOML files from ./code_gen/templates/classDefinitions and returns a slice of Structure objects. If includeDisabled is false, only returns structures where DisableGo is false.
func (*Structure) AllActions ¶
func (*Structure) CacheIdStr ¶
func (*Structure) CalcMembers ¶
func (*Structure) ClassOrClassGroup ¶
func (*Structure) DocSortOrder ¶
func (*Structure) FacetByName ¶
func (*Structure) HandlerStrs ¶
func (*Structure) Handlers_inner ¶
func (*Structure) HasAddresses ¶
func (*Structure) HasAutoname ¶
func (*Structure) HasCrudActions ¶
func (*Structure) HasCustomFacet ¶
func (*Structure) HasCustomPanel ¶
func (*Structure) HasCustomRenderers ¶ added in v6.6.5
func (*Structure) HasDynamicFacets ¶ added in v6.6.5
func (*Structure) HasRowActions ¶
func (*Structure) HasTimestamp ¶
func (*Structure) HasTsTypesTypes ¶
func (*Structure) HeaderActionsBe ¶
func (*Structure) IsCachable ¶
func (*Structure) IsCacheAsGroup ¶
func (*Structure) IsFilenameCache ¶
func (*Structure) IsMarshalOnly ¶
func (*Structure) ItemFullType ¶
func (*Structure) ModelIntro ¶
func (*Structure) ModelMembers ¶
func (*Structure) ModelNotes ¶
func (*Structure) ModelProducers ¶
func (*Structure) NeedsAddress ¶
func (*Structure) NeedsStatement ¶
func (*Structure) ProcessFile ¶
ProcessFile processes a single file, applying the template to it and writing the result to the destination.
func (*Structure) RemoveCallback ¶
func (*Structure) RowActionsBe ¶
func (*Structure) RowActionsFe ¶
func (*Structure) SortFields ¶
func (*Structure) SortString ¶
func (*Structure) SortSwitches ¶
func (*Structure) SortsInstance ¶
func (*Structure) TsTypeMembers ¶
func (*Structure) TsTypesTypes ¶
func (*Structure) UiRouteName ¶
func (*Structure) UiRouteNum ¶
func (*Structure) UniqueActions ¶
returns a list of unique actions from all the facets sorted alphabetically
Source Files
¶
- code_writer.go
- csv.go
- generate.go
- load.go
- process_codebase.go
- process_codebase_group.go
- process_command.go
- process_structure.go
- templates.go
- types_codebase.go
- types_command.go
- types_enums.go
- types_facet.go
- types_handler.go
- types_member.go
- types_notes.go
- types_option.go
- types_sorts.go
- types_store.go
- types_structure.go
- types_structure_actions.go
- utils.go
- utils.markdown.go
- validate.go
- validate_templates.go
- verbose.go
- verifyValidators.go