steps

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 11 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Back

func Back() tea.Msg

Back emits a BackMsg as a tea.Cmd-compatible value.

func Next

func Next() tea.Msg

Next emits a NextMsg as a tea.Cmd-compatible value.

Types

type BackMsg

type BackMsg = tui.BackMsg

BackMsg is an alias for tui.BackMsg.

type Backend

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

func (*Backend) Choice

func (b *Backend) Choice() string

func (*Backend) Init

func (*Backend) Init() tea.Cmd

func (*Backend) Title

func (*Backend) Title() string

func (*Backend) Update

func (b *Backend) Update(msg tea.Msg) (Step, tea.Cmd)

func (*Backend) View

func (b *Backend) View() string
type Consent struct {
	// contains filtered or unexported fields
}

func (*Consent) Init

func (*Consent) Init() tea.Cmd

func (*Consent) Title

func (*Consent) Title() string

func (*Consent) Update

func (c *Consent) Update(msg tea.Msg) (Step, tea.Cmd)

func (*Consent) View

func (c *Consent) View() string

type Install

type Install struct {
	Engines          []string
	Backend          string
	DryRun           bool
	AgplAcknowledged bool
	// contains filtered or unexported fields
}

func (*Install) Init

func (i *Install) Init() tea.Cmd

func (*Install) Set

func (i *Install) Set(engines []string, backend string)

func (*Install) SetAgplAcknowledged

func (i *Install) SetAgplAcknowledged(ack bool)

func (*Install) SetDryRun

func (i *Install) SetDryRun(d bool)

func (*Install) Title

func (*Install) Title() string

func (*Install) Update

func (i *Install) Update(msg tea.Msg) (Step, tea.Cmd)

func (*Install) View

func (i *Install) View() string

type NextMsg

type NextMsg = tui.NextMsg

NextMsg is an alias for tui.NextMsg.

type Review

type Review struct {
	Engines []string
	Backend string
	// contains filtered or unexported fields
}

func (*Review) Init

func (*Review) Init() tea.Cmd

func (*Review) Set

func (r *Review) Set(engines []string, backend string)

func (*Review) Title

func (*Review) Title() string

func (*Review) Update

func (r *Review) Update(msg tea.Msg) (Step, tea.Cmd)

func (*Review) View

func (r *Review) View() string

type Stack

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

func (*Stack) Init

func (*Stack) Init() tea.Cmd

func (*Stack) Selected

func (s *Stack) Selected() []string

func (*Stack) Title

func (*Stack) Title() string

func (*Stack) Update

func (s *Stack) Update(msg tea.Msg) (Step, tea.Cmd)

func (*Stack) View

func (s *Stack) View() string

type Step

type Step = tui.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 NewReview

func NewReview() Step

func NewStack

func NewStack() Step

func NewWelcome

func NewWelcome() Step

type Welcome

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

func (*Welcome) Init

func (*Welcome) Init() tea.Cmd

func (*Welcome) Title

func (*Welcome) Title() string

func (*Welcome) Update

func (w *Welcome) Update(msg tea.Msg) (Step, tea.Cmd)

func (*Welcome) View

func (w *Welcome) View() string

Jump to

Keyboard shortcuts

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