Documentation
¶
Index ¶
- Constants
- type Archetype
- type CommonDependency
- type Dependency
- type DependencyManager
- func (dm DependencyManager) GetSelectedDependency() Dependency
- func (dm DependencyManager) IsCustomMode() bool
- func (dm *DependencyManager) SetCommonMode()
- func (dm *DependencyManager) SetCustomMode()
- func (dm *DependencyManager) Update(msg tea.Msg) tea.Cmd
- func (dm DependencyManager) View(width, height int) string
- type Model
- type ModuleCreation
- func (mc ModuleCreation) BuildCreateModuleCommand(projectRoot string) maven.Command
- func (mc ModuleCreation) GetModuleName() string
- func (mc ModuleCreation) GetValidationErrors() []string
- func (mc ModuleCreation) IsValid() bool
- func (mc *ModuleCreation) Update(msg tea.Msg) tea.Cmd
- func (mc ModuleCreation) View(width, height int) string
- type ProjectCreation
- func (pc ProjectCreation) BuildCreateCommand() maven.Command
- func (pc ProjectCreation) GetArtifactId() string
- func (pc ProjectCreation) GetFolderName() string
- func (pc ProjectCreation) GetSelectedJavaVersion() maven.JavaVersion
- func (pc ProjectCreation) GetValidationErrors() []string
- func (pc ProjectCreation) IsValid() bool
- func (pc *ProjectCreation) Update(msg tea.Msg) tea.Cmd
- func (pc ProjectCreation) View(width, height int, showNoPomMessage bool) string
- type Task
- type ViewMode
Constants ¶
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 ¶
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 NewModelWithoutProject ¶
NewModelWithoutProject creates a new application model without a project (for project creation)
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
type Task ¶
Task represents a Maven task
func BuiltInTasks ¶
BuiltInTasks returns the default Maven tasks