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

ui

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultArchetypeIndex = 0

Default archetype for quick project creation

Variables

This section is empty.

Functions

This section is empty.

Types

type Archetype

type Archetype struct {
	Name        string
	Description string
	GroupID     string
	ArtifactID  string
	Version     string
}

Archetype represents a Maven archetype preset

func CommonArchetypes

func CommonArchetypes() []Archetype

CommonArchetypes returns a list of common Maven archetypes

type CommonDependency

type CommonDependency struct {
	Name        string
	Description string
	Dependency  Dependency
}

CommonDependency represents a well-known dependency

func CommonDependencies

func CommonDependencies() []CommonDependency

CommonDependencies returns a list of commonly used dependencies

type Dependency

type Dependency struct {
	GroupID    string
	ArtifactID string
	Version    string
	Scope      string
}

Dependency represents a Maven dependency

type DependencyManager

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

DependencyManager represents the dependency management state

func NewDependencyManager

func NewDependencyManager() DependencyManager

NewDependencyManager creates a new dependency manager

func (DependencyManager) GetSelectedDependency

func (dm DependencyManager) GetSelectedDependency() Dependency

GetSelectedDependency returns the currently selected dependency

func (DependencyManager) IsCustomMode

func (dm DependencyManager) IsCustomMode() bool

IsCustomMode returns true if in custom mode

func (*DependencyManager) SetCommonMode

func (dm *DependencyManager) SetCommonMode()

SetCommonMode switches back to common dependency selection

func (*DependencyManager) SetCustomMode

func (dm *DependencyManager) SetCustomMode()

SetCustomMode switches to custom dependency input mode

func (*DependencyManager) Update

func (dm *DependencyManager) Update(msg tea.Msg) tea.Cmd

Update handles dependency manager updates

func (DependencyManager) View

func (dm DependencyManager) View(width, height int) string

View renders the dependency manager view

type Model

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

Model represents the application state

func NewModel

func NewModel(project *maven.Project) Model

NewModel creates a new application model with an existing project

func NewModelWithoutProject

func NewModelWithoutProject(workDir string) Model

NewModelWithoutProject creates a new application model without a project (for project creation)

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model

func (Model) Update

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

Update handles messages

func (Model) View

func (m Model) View() string

View renders the UI

type ModuleCreation

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

ModuleCreation represents the module creation flow state

func NewModuleCreation

func NewModuleCreation() ModuleCreation

NewModuleCreation creates a new module creation flow

func (ModuleCreation) BuildCreateModuleCommand

func (mc ModuleCreation) BuildCreateModuleCommand(projectRoot string) maven.Command

BuildCreateModuleCommand creates the command to create a new module

func (ModuleCreation) GetModuleName

func (mc ModuleCreation) GetModuleName() string

GetModuleName returns the module name

func (ModuleCreation) GetValidationErrors added in v1.1.0

func (mc ModuleCreation) GetValidationErrors() []string

GetValidationErrors returns a list of validation error messages

func (ModuleCreation) IsValid added in v1.1.0

func (mc ModuleCreation) IsValid() bool

IsValid checks if all required inputs have values and are valid

func (*ModuleCreation) Update

func (mc *ModuleCreation) Update(msg tea.Msg) tea.Cmd

Update handles module creation updates

func (ModuleCreation) View

func (mc ModuleCreation) View(width, height int) string

View renders the module creation view

type ProjectCreation

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

ProjectCreation represents the project creation flow state

func NewProjectCreation

func NewProjectCreation() ProjectCreation

NewProjectCreation creates a new project creation flow

func (ProjectCreation) BuildCreateCommand

func (pc ProjectCreation) BuildCreateCommand() maven.Command

BuildCreateCommand creates the Maven archetype:generate command

func (ProjectCreation) GetArtifactId added in v1.1.0

func (pc ProjectCreation) GetArtifactId() string

GetArtifactId returns the Maven artifact ID for the project

func (ProjectCreation) GetFolderName added in v1.1.0

func (pc ProjectCreation) GetFolderName() string

GetFolderName returns the folder name for the project

func (ProjectCreation) GetSelectedJavaVersion added in v1.1.0

func (pc ProjectCreation) GetSelectedJavaVersion() maven.JavaVersion

GetSelectedJavaVersion returns the selected Java version

func (ProjectCreation) GetValidationErrors added in v1.1.0

func (pc ProjectCreation) GetValidationErrors() []string

GetValidationErrors returns a list of validation error messages

func (ProjectCreation) IsValid added in v1.0.6

func (pc ProjectCreation) IsValid() bool

IsValid checks if all required inputs have values and are valid

func (*ProjectCreation) Update

func (pc *ProjectCreation) Update(msg tea.Msg) tea.Cmd

Update handles project creation updates

func (ProjectCreation) View

func (pc ProjectCreation) View(width, height int, showNoPomMessage bool) string

View renders the project creation view

type Task

type Task struct {
	Name        string
	Description string
	Goals       []string
}

Task represents a Maven task

func BuiltInTasks

func BuiltInTasks(project *maven.Project) []Task

BuiltInTasks returns the default Maven tasks

type ViewMode

type ViewMode int

ViewMode represents the current view

const (
	ViewMain ViewMode = iota
	ViewLogs
	ViewHistory
	ViewProjectCreation
	ViewModuleCreation
	ViewDependencyManager
)

Jump to

Keyboard shortcuts

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