Help us shape the future of Go! Take the 2026 Go Developer Survey

stage

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateProjectStage

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

func NewCreateProjectStage

func NewCreateProjectStage() *CreateProjectStage

创建项目

func (*CreateProjectStage) DownloadTemplate

func (s *CreateProjectStage) DownloadTemplate() tea.Cmd

func (*CreateProjectStage) Update

func (s *CreateProjectStage) Update(msg tea.Msg) tea.Cmd

func (*CreateProjectStage) VerifyFolderName

func (s *CreateProjectStage) VerifyFolderName() tea.Cmd

校验文件夹是否存在

func (CreateProjectStage) View

func (s CreateProjectStage) View() string

type InsertStageMsg

type InsertStageMsg struct {
	NewStage Stage
}

type MainStage

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

func NewMainStage

func NewMainStage() *MainStage

主入口

func (*MainStage) Update

func (s *MainStage) Update(msg tea.Msg) tea.Cmd

func (MainStage) View

func (s MainStage) View() string

type ManageProjectStage

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

func NewManageProjectStage

func NewManageProjectStage() *ManageProjectStage

管理项目

func (*ManageProjectStage) Update

func (s *ManageProjectStage) Update(msg tea.Msg) tea.Cmd

func (ManageProjectStage) View

func (s ManageProjectStage) View() string

type QuitCli

type QuitCli struct {
}

type Stage

type Stage interface {
	View() string
	Update(msg tea.Msg) tea.Cmd
}

Stage 接口定义

type ToggleStage

type ToggleStage struct {
	Content string
	Stage   Stage
}

Jump to

Keyboard shortcuts

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