project_new

package
v1.33.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args added in v1.30.0

type Args struct {
	ProjectName  string
	TemplateName string
}

type Model added in v1.30.0

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

Model - represents the state of the new project creation operation

func New added in v1.30.0

func New(args Args) Model

func (Model) Init added in v1.30.0

func (m Model) Init() tea.Cmd

Init initializes the model, used by Bubbletea

func (Model) ProjectName added in v1.30.0

func (m Model) ProjectName() string

ProjectName - returns the project name entered by the user

func (Model) TemplateName added in v1.30.0

func (m Model) TemplateName() string

TemplateName returns the project template name selected by the user

func (Model) Update added in v1.30.0

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

Update the model based on a message

func (Model) View added in v1.30.0

func (m Model) View() string

type NewProjectStatus added in v1.30.0

type NewProjectStatus int
const (
	NameInput NewProjectStatus = iota
	TemplateInput
	Pending
	Done
	Error
)

type TemplateItem added in v1.33.0

type TemplateItem struct {
	Value       string
	Description string
}

func (*TemplateItem) GetItemDescription added in v1.33.0

func (m *TemplateItem) GetItemDescription() string

func (*TemplateItem) GetItemValue added in v1.33.0

func (m *TemplateItem) GetItemValue() string

Jump to

Keyboard shortcuts

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