steps

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerModel

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

DockerModel manages the Docker setup step.

func NewDockerModel

func NewDockerModel() *DockerModel

NewDockerModel creates a new DockerModel.

func (*DockerModel) CanQuit

func (m *DockerModel) CanQuit() bool

CanQuit always returns true for the Docker step.

func (*DockerModel) CanSwitchTabs

func (m *DockerModel) CanSwitchTabs() bool

CanSwitchTabs always returns true for the Docker step.

func (*DockerModel) Init

func (m *DockerModel) Init() tea.Cmd

Init triggers the initial Docker status check.

func (*DockerModel) IsDone

func (m *DockerModel) IsDone() bool

IsDone reports whether the Docker setup step has been completed.

func (*DockerModel) Title

func (m *DockerModel) Title() string

Title returns the display name of this step.

func (*DockerModel) Update

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

Update handles messages for the Docker setup step.

func (*DockerModel) View

func (m *DockerModel) View() string

View renders the Docker setup step.

type GitModel

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

GitModel manages the Git configuration step.

func NewGitModel

func NewGitModel() *GitModel

NewGitModel creates a new GitModel with default text inputs.

func (*GitModel) CanQuit

func (m *GitModel) CanQuit() bool

CanQuit always returns true for the Git step.

func (*GitModel) CanSwitchTabs

func (m *GitModel) CanSwitchTabs() bool

CanSwitchTabs always returns true — left/right cursor movement in text inputs yields to tab navigation; fields are short enough that this is acceptable.

func (*GitModel) Init

func (m *GitModel) Init() tea.Cmd

Init reads existing git config and starts cursor blinking.

func (*GitModel) IsDone

func (m *GitModel) IsDone() bool

IsDone reports whether the Git configuration step has been completed.

func (*GitModel) Title

func (m *GitModel) Title() string

Title returns the display name of this step.

func (*GitModel) Update

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

Update handles messages for the Git configuration step.

func (*GitModel) View

func (m *GitModel) View() string

View renders the Git configuration step.

type ToolsModel

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

ToolsModel is the Bubble Tea model for the tool-installation tab.

func NewToolsModel

func NewToolsModel(sysInfo system.Info) *ToolsModel

NewToolsModel creates and returns a new ToolsModel initialised with the tool registry and system information used to resolve install commands.

func (*ToolsModel) CanQuit

func (m *ToolsModel) CanQuit() bool

CanQuit returns false while the PTY is focused or work is in progress so Ctrl+C is forwarded to the running process and in-flight operations can be cancelled/cleaned up predictably by the model.

func (*ToolsModel) CanSwitchTabs

func (m *ToolsModel) CanSwitchTabs() bool

CanSwitchTabs returns false when a popup is open, the PTY is focused, or install/uninstall work is still active or queued.

func (*ToolsModel) Init

func (m *ToolsModel) Init() tea.Cmd

Init detects currently installed tool versions asynchronously.

func (*ToolsModel) IsDone

func (m *ToolsModel) IsDone() bool

IsDone reports whether the Tools tab has completed all its work.

func (*ToolsModel) Title

func (m *ToolsModel) Title() string

Title returns the display name of the Tools tab.

func (*ToolsModel) Update

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

Update dispatches incoming Bubble Tea messages to the appropriate handler.

func (*ToolsModel) View

func (m *ToolsModel) View() string

View renders the Tools tab content.

Jump to

Keyboard shortcuts

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