npmselect

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Search(query string) tea.Cmd

func Send

func Send() (selected []string, err error)

Types

type DebouncedSearchMsg

type DebouncedSearchMsg struct {
	Query string
}

type Model

type Model struct {
	Selected  []string
	Prompt    string
	LastQuery string
	Search    *search.Search
	Viewport  *viewport.Viewport
	Packages  []npm.PackageInfo
	Debounce  time.Duration
	Debouncer *time.Timer
	Error     error
	Loading   bool
	Quitting  bool
	Confirmed bool
}

func (*Model) Init

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

func (*Model) Update

func (model *Model) Update(message tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (model *Model) View() string

type SearchResultMsg

type SearchResultMsg struct {
	Packages []npm.PackageInfo
	Error    error
}

Jump to

Keyboard shortcuts

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