initui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitModel

type InitModel struct {
	Error error
	// contains filtered or unexported fields
}

func NewInitApp

func NewInitApp(
	initialState InitialState,
	bluelinkStyles *styles.BluelinkStyles,
) (*InitModel, error)

func (InitModel) Init

func (m InitModel) Init() tea.Cmd

func (InitModel) Update

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

func (InitModel) View

func (m InitModel) View() string

type InitialState

type InitialState struct {
	Template                 string
	IsDefaultTemplate        bool
	ProjectName              string
	BlueprintFormat          string
	IsDefaultBlueprintFormat bool
	NoGit                    *bool
	IsDefaultNoGit           bool
	Directory                string
}

InitialState is the initial state for the init TUI app to initialise a new project.

type InputFormCompleteMsg

type InputFormCompleteMsg struct {
	ProjectName     string
	BlueprintFormat string
	NoGit           bool
}

InputFormCompleteMsg signals completion of the input form stage. This message carries all the form values to the parent InitModel.

type InputFormInitialValues

type InputFormInitialValues struct {
	ProjectName              string
	BlueprintFormat          string
	IsDefaultBlueprintFormat bool
	NoGit                    *bool
	IsDefaultNoGit           bool
}

InputFormInitialValues holds the initial values for the input form passed from InitialState.

type InputFormModel

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

InputFormModel handles the input form stage where users provide project name, blueprint format, and git initialization preference.

func NewInputFormModel

func NewInputFormModel(
	initialValues InputFormInitialValues,
	bluelinkStyles *styles.BluelinkStyles,
) *InputFormModel

NewInputFormModel creates a new InputFormModel with the given initial values.

func (InputFormModel) Init

func (m InputFormModel) Init() tea.Cmd

func (InputFormModel) Update

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

func (InputFormModel) View

func (m InputFormModel) View() string

type SelectTemplateModel

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

func NewSelectTemplateModel

func NewSelectTemplateModel(
	bluelinkStyles *styles.BluelinkStyles,
	autoSelect bool,
) (*SelectTemplateModel, error)

func (SelectTemplateModel) Init

func (m SelectTemplateModel) Init() tea.Cmd

func (SelectTemplateModel) Update

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

func (SelectTemplateModel) View

func (m SelectTemplateModel) View() string

type SelectTemplateMsg

type SelectTemplateMsg struct {
	Template string
}

Jump to

Keyboard shortcuts

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