modselect

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Styles = struct {
	Box              lipgloss.Style
	SelectedModule   lipgloss.Style
	UnselectedModule lipgloss.Style
}{
	Box:            lipgloss.NewStyle().BorderStyle(lipgloss.NormalBorder()).BorderTop(true),
	SelectedModule: lipgloss.NewStyle().Margin(0, 2).Foreground(lipgloss.Color("12")).Bold(true),
}

Functions

This section is empty.

Types

type ModSelect

type ModSelect struct {
	common.Common

	Modules  []string
	Selected int
	// contains filtered or unexported fields
}

A vertical bar that allows you to select a module that has been seen

func New

func New(c common.Common) *ModSelect

func (*ModSelect) AddModule

func (m *ModSelect) AddModule(modName string)

func (*ModSelect) Init

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

func (*ModSelect) Update

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

func (*ModSelect) View

func (m *ModSelect) View() string

type ModuleSelectedMsg

type ModuleSelectedMsg string

Jump to

Keyboard shortcuts

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