cli_model

package
v0.0.0-...-6c939f6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppState

type AppState int
const (
	StateWelcome AppState = iota
	StateProjectName
	StateLanguage
	StatePackageManager
	StateTestFramework
	StateLoggerLibrary
	StateDatabase
	StateORM
	StateConfig
	StateCodingStyle
	StateFolderStructure
)

type CliModel

type CliModel struct {
	CurrentState           AppState
	ProjectNameInput       textinput.Model
	WelcomeMessage         string
	LanguageList           list.Model
	SelectedLanguage       string
	PackageManagerList     list.Model
	SelectedPackageManager string
	TestFrameworkList      list.Model
	SelectedTestFramework  string
	LoggerLibraryList      list.Model
	SelectedLoggerLibrary  string
	DatabaseList           list.Model
	SelectedDatabase       string
	ORMList                list.Model
	SelectedORM            string
	ConfigList             list.Model
	SelectedConfig         string
	CodingStyleList        list.Model
	SelectedCodingStyle    string
	FolderStructureCreated bool
	Error                  error
}

func InitialModel

func InitialModel() CliModel

func (CliModel) Init

func (m CliModel) Init() tea.Cmd

func (CliModel) Update

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

func (CliModel) View

func (m CliModel) View() string

Jump to

Keyboard shortcuts

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