app

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppActiveModel

type AppActiveModel string
const (
	AppActiveModelSourceLoader AppActiveModel = "SourceLoader"
	AppActiveModelPromptsForm  AppActiveModel = "PromptsForm"
	AppActiveModelScaffolder   AppActiveModel = "Scaffolder"
)

type AppModel

type AppModel struct {
	CurrentState  AppModelState
	Source        string
	Destination   string
	ActiveModel   AppActiveModel
	SourceLoader  tea.Model
	PromptsForm   tea.Model
	Scaffolder    tea.Model
	ScfConfig     *scfconfig.ScfConfig
	CommandsToRun []*scfconfig.CommandsToRun
	Err           error
	Width         int
	Height        int
}

func NewAppModel

func NewAppModel(source string, destination string) *AppModel

func (AppModel) Init

func (m AppModel) Init() tea.Cmd

func (AppModel) Update

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

func (AppModel) View

func (m AppModel) View() string

type AppModelState

type AppModelState int
const (
	AppModelStateStateRunning AppModelState = iota
	AppModelStateStateComplete
	AppModelStateStateError
)

Jump to

Keyboard shortcuts

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