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)
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 ¶
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) 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) View ¶
func (m SelectTemplateModel) View() string
type SelectTemplateMsg ¶
type SelectTemplateMsg struct {
Template string
}
Click to show internal directories.
Click to hide internal directories.