wizard_intro

package
v3.63.11 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item int

Item represents a single item in the selector.

const (
	ScanSourceWithWizard Item = iota
	// ScanSourceWithConfig
	ViewHelpDocs
	ViewOSSProject
	EnterpriseInquire
	Quit
)

func (Item) Command

func (i Item) Command() string

Command returns the item Command view.

func (Item) Description

func (i Item) Description() string

Description returns the item description. Implements list.DefaultItem.

func (Item) FilterValue

func (i Item) FilterValue() string

FilterValue implements list.Item.

func (Item) ID

func (i Item) ID() string

ID implements selector.IdentifiableItem.

func (Item) String

func (w Item) String() string

func (Item) Title

func (i Item) Title() string

Title returns the item title. Implements list.DefaultItem.

type ItemDelegate

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

ItemDelegate is the delegate for the item.

func (ItemDelegate) Height

func (d ItemDelegate) Height() int

Height returns the item height. Implements list.ItemDelegate.

func (ItemDelegate) Render

func (d ItemDelegate) Render(w io.Writer, m list.Model, index int, listItem list.Item)

Render implements list.ItemDelegate.

func (ItemDelegate) Spacing

func (d ItemDelegate) Spacing() int

Spacing returns the spacing between items. Implements list.ItemDelegate.

func (ItemDelegate) Update

func (d ItemDelegate) Update(msg tea.Msg, m *list.Model) tea.Cmd

Update implements list.ItemDelegate.

func (ItemDelegate) Width

func (d ItemDelegate) Width() int

Width returns the item width.

type WizardIntro

type WizardIntro struct {
	common.Common
	// contains filtered or unexported fields
}

func New

func New(cmn common.Common) *WizardIntro

func (*WizardIntro) FullHelp

func (m *WizardIntro) FullHelp() [][]key.Binding

func (*WizardIntro) Init

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

func (*WizardIntro) ShortHelp

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

func (*WizardIntro) Update

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

func (*WizardIntro) View

func (m *WizardIntro) View() string

Jump to

Keyboard shortcuts

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