Documentation
¶
Overview ¶
Package steps holds the individual wizard screens for the `init` wizard. Each step is a self-contained Bubble Tea sub-model.
As of v0.4.0 the Step contract and navigation messages live in internal/tui. This file re-exports them as type aliases so the existing init wizard keeps compiling unchanged while detect/stack/workspace/usb/lab share the same abstractions.
Index ¶
- func Back() tea.Msg
- func Next() tea.Msg
- type BackMsg
- type Backend
- type Consent
- type Install
- func (i *Install) Init() tea.Cmd
- func (i *Install) Set(engines []string, backend string)
- func (i *Install) SetAgplAcknowledged(ack bool)
- func (i *Install) SetDryRun(d bool)
- func (i *Install) SetProjectOSName(name string)
- func (*Install) Title() string
- func (i *Install) Update(msg tea.Msg) (Step, tea.Cmd)
- func (i *Install) View() string
- type Naming
- type NextMsg
- type Review
- type Stack
- type Step
- type Welcome
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Install ¶
type Install struct {
Engines []string
Backend string
ProjectOSName string
DryRun bool
AgplAcknowledged bool
// contains filtered or unexported fields
}
func (*Install) SetAgplAcknowledged ¶
func (*Install) SetProjectOSName ¶ added in v0.10.0
type Naming ¶ added in v0.10.0
type Naming struct {
DryRun bool
// contains filtered or unexported fields
}
type Review ¶
type Review struct {
ProjectOSName string
Engines []string
Backend string
// contains filtered or unexported fields
}
func (*Review) SetProjectOSName ¶ added in v0.10.0
type Step ¶
Step is an alias for tui.Step. Kept for backward compatibility with the existing init wizard. New wizards should import tui directly.
func NewBackend ¶
func NewBackend() Step
func NewConsent ¶
func NewConsent() Step
func NewInstall ¶
func NewInstall() Step
func NewWelcome ¶
func NewWelcome() Step
Click to show internal directories.
Click to hide internal directories.