handlers

package
v0.0.0-...-01ca449 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInitHandler

func NewInitHandler(scaffoldService types.ScaffoldService) types.InitHandler

func RunInitTUI

func RunInitTUI() (strategy string, projectName string, err error)

RunInitTUI runs the init TUI flow and returns the selected strategy and project name

Types

type InitScreen

type InitScreen int

Screen types for init flow

const (
	InitScreenStrategy InitScreen = iota
	InitScreenProjectName
)

type InitTUIModel

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

InitTUIModel represents the init flow TUI state

func NewInitTUIModel

func NewInitTUIModel(strategies []StrategyTemplate) InitTUIModel

func (InitTUIModel) Init

func (m InitTUIModel) Init() tea.Cmd

func (InitTUIModel) Update

func (m InitTUIModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (InitTUIModel) View

func (m InitTUIModel) View() string

type StrategyTemplate

type StrategyTemplate struct {
	Name        string
	DisplayName string
	Description string
	Icon        string
	SDKExample  string // Maps to SDK examples directory
}

Strategy templates

func LoadStrategies

func LoadStrategies() ([]StrategyTemplate, error)

LoadStrategies loads strategy metadata from SDK or uses fallback

Jump to

Keyboard shortcuts

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