Versions in this module Expand all Collapse all v0 v0.14.0 Apr 24, 2024 v0.13.0 Feb 27, 2024 Changes in this version + const CommandName + const DefaultTemplateRoot + var Args = Arguments + var Cmd = &cobra.Command + var DefaultConfigV2 = ConfigV2 + var DefaultTemplateFS embed.FS + var DefaultVersionedConfig = VersionedConfig + func GenerateWithConfig(ctx context.Context, cfg *ConfigV2) error + func GenerateWithConfigPath(ctx context.Context, configPath string) error + func Run(cmd *cobra.Command, _ []string) error + type AccessV2 struct + Preset generator.AccessPreset + type Arguments struct + Config string + type AuthenticationV2 struct + Method generator.AuthenticationMethod + type ComponentsV2 struct + Contract ContractV2 + Security SecurityV2 + func (c *ComponentsV2) ToOption() generator.Options + type Config struct + Contract string + ProjectName string + Regeneration Regeneration + Regexes map[string]string + RepositoryRootPath string + TemplateDirectory string + func (c Config) ToV2() *ConfigV2 + type ConfigV2 struct + Components ComponentsV2 + Project ProjectV2 + Regen RegenerationV2 + Templates TemplatesV2 + func (c ConfigV2) ToOptions() []generator.Options + type ConfigVersion string + const Version1 + const Version2 + const VersionUnknown + type ContractNamingV2 struct + RegExps map[string]string + type ContractV2 struct + Naming ContractNamingV2 + Path string + type ProjectV2 struct + ContextPath string + Description string + Module string + Name string + Port int + func (p *ProjectV2) ToOption() generator.Options + type RegenMode generator.RegenMode + type RegenRule struct + Mode RegenMode + Pattern string + type RegenRules []RegenRule + type Regeneration struct + Default string + Rules map[string]string + type RegenerationV2 struct + Default RegenMode + Rules RegenRules + func (r RegenerationV2) ToOption() func(*generator.Option) + type SecurityV2 struct + Access AccessV2 + Authentication AuthenticationV2 + type TemplatesV2 struct + Path string + type VersionedConfig struct + Version ConfigVersion