project

package
v1.55.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	ProjectName  string
	TemplateName string
	Force        bool
}

type Model

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

Model - represents the state of the new project creation operation

func New

func New(fs afero.Fs, args Args) (Model, error)

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model, used by Bubbletea

func (Model) ProjectName

func (m Model) ProjectName() string

ProjectName - returns the project name entered by the user

func (Model) TemplateName

func (m Model) TemplateName() string

TemplateName returns the project template name selected by the user

func (Model) Update

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

Update the model based on a message

func (Model) View

func (m Model) View() string

type NewProjectStatus

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

type TemplateItem

type TemplateItem struct {
	Value       string
	Description string
}

func (*TemplateItem) GetItemDescription

func (m *TemplateItem) GetItemDescription() string

func (*TemplateItem) GetItemValue

func (m *TemplateItem) GetItemValue() string

Jump to

Keyboard shortcuts

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