scaffold

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateComponentName

func ValidateComponentName(name string) error

ValidateComponentName checks if a component name is valid

Types

type SDKVersions

type SDKVersions struct {
	Go         string `json:"go"`
	Rust       string `json:"rust"`
	Python     string `json:"python"`
	TypeScript string `json:"typescript"`
}

SDKVersions represents the SDK versions for each language

type Scaffolder

type Scaffolder struct {
	// contains filtered or unexported fields
}

Scaffolder handles component generation using CUE templates

func NewScaffolder

func NewScaffolder() (*Scaffolder, error)

NewScaffolder creates a new scaffolder with embedded templates

func (*Scaffolder) GenerateComponent

func (s *Scaffolder) GenerateComponent(name, language string) error

GenerateComponent creates a new component from templates

func (*Scaffolder) GenerateProject

func (s *Scaffolder) GenerateProject(projectDir, name, description, format string) error

GenerateProject creates a new FTL project from templates

func (*Scaffolder) ListLanguages

func (s *Scaffolder) ListLanguages() []string

ListLanguages returns the available languages

type Versions

type Versions struct {
	FTLCli string      `json:"ftl"`
	SDK    SDKVersions `json:"sdk"`
}

Versions represents all versions used in templates

Jump to

Keyboard shortcuts

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