role

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package role provides the role selection step for onboarding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model handles role selection.

func New

func New(theme styles.Theme, prefs preferences.UserPreferences, scope log.Scope) *Model

New creates a new role selection step.

func (*Model) Init

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

Init checks for a saved role preference.

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

SetSize updates dimensions.

func (*Model) ShortHelp

func (m *Model) ShortHelp() []key.Binding

ShortHelp returns the key bindings for the short help view.

func (*Model) Update

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

Update handles messages.

func (*Model) View

func (m *Model) View() string

View renders the role selection UI.

Jump to

Keyboard shortcuts

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