login

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {

	// Result fields — set when Done is true.
	Done    bool
	Profile config.Profile
	Name    string
	// contains filtered or unexported fields
}

Model is the BubbleTea model for the interactive login wizard.

func New

func New() Model

New returns a fresh login wizard model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init starts the cursor blink.

func (Model) Update

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

Update handles keyboard events and routes to the active text input.

func (Model) View

func (m Model) View() string

View renders the current wizard step inside a flat NormalBorder card with a fixed UPPERCASE title strip. Each step writes its own label row + body + hint row, joined into the card.

Jump to

Keyboard shortcuts

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