extensions

package
v1.0.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package extensions provides the framework for registering and applying extensions to the scaffold generation process.

Index

Constants

This section is empty.

Variables

View Source
var Files embed.FS

Functions

func Names

func Names() []string

func Register

func Register(ext Extension) error

Types

type AwsSes

type AwsSes struct{}

func (AwsSes) Apply

func (e AwsSes) Apply(ctx *Context) error

func (AwsSes) Dependencies

func (e AwsSes) Dependencies() []string

func (AwsSes) Name

func (e AwsSes) Name() string

type Context

type Context struct {
	TargetDir         string
	Data              TemplateData
	ProcessTemplate   ProcessTemplateFunc
	AddPostStep       func(func(targetDir string) error)
	NextMigrationTime *time.Time
	Inertia           string // inertia adapter, e.g. "vue", "react"
}

func (*Context) Builder

func (ctx *Context) Builder() *blueprint.Builder

Builder returns the blueprint builder for structured contributions.

type CssComponents added in v1.0.0

type CssComponents struct{}

func (CssComponents) Apply added in v1.0.0

func (c CssComponents) Apply(ctx *Context) error

func (CssComponents) Dependencies added in v1.0.0

func (c CssComponents) Dependencies() []string

func (CssComponents) Name added in v1.0.0

func (c CssComponents) Name() string

type Docker

type Docker struct{}

func (Docker) Apply

func (d Docker) Apply(ctx *Context) error

func (Docker) Dependencies

func (d Docker) Dependencies() []string

func (Docker) Name

func (d Docker) Name() string

type Extension

type Extension interface {
	Name() string
	Apply(ctx *Context) error
	Dependencies() []string
}

func Get

func Get(name string) (Extension, bool)

type ProcessTemplateFunc

type ProcessTemplateFunc func(templateFile, targetPath string, data TemplateData) error

type TemplateData

type TemplateData interface {
	DatabaseDialect() string
	GetModuleName() string
	GetInertia() string
	Builder() *blueprint.Builder
	SetBlueprint(bp *blueprint.Blueprint)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL