accounts

package
v1.22.3 Latest Latest
Warning

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

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

Documentation

Overview

Package accounts provides account selection and creation steps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateModel

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

CreateModel handles account creation.

func NewCreate

func NewCreate(
	ctx context.Context,
	theme styles.Theme,
	org domain.Organization,
	services api.APIServices,
	prefs preferences.OrgPreferences,
	scope log.Scope,
) *CreateModel

NewCreate creates a new account creation step.

func (*CreateModel) Init

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

Init focuses the input.

func (*CreateModel) SetSize

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

SetSize updates dimensions.

func (*CreateModel) ShortHelp

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

ShortHelp returns the key bindings for the short help view.

func (*CreateModel) Update

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

Update handles messages.

func (*CreateModel) View

func (m *CreateModel) View() string

View renders the account creation UI.

type SelectModel

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

SelectModel handles account selection.

func NewSelect

func NewSelect(
	ctx context.Context,
	theme styles.Theme,
	org domain.Organization,
	services api.APIServices,
	prefs preferences.OrgPreferences,
	scope log.Scope,
) *SelectModel

NewSelect creates a new account select step.

func (*SelectModel) Init

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

Init starts loading accounts.

func (*SelectModel) SetSize

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

SetSize updates dimensions.

func (*SelectModel) ShortHelp

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

ShortHelp returns the key bindings for the short help view.

func (*SelectModel) Update

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

Update handles messages.

func (*SelectModel) View

func (m *SelectModel) View() string

View renders the account selection UI.

Jump to

Keyboard shortcuts

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