library

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLibraryView added in v0.2.0

func NewLibraryView(
	ctx *context.Context,
	workspaces config.WorkspaceConfigList,
	execs config.ExecutableList,
	filter Filter,
	theme styles.Theme,
	runFunc func(string) error,
) components.TeaModel

Types

type Filter

type Filter struct {
	Workspace, Namespace string
	Verb                 config.Verb
	Tags                 config.Tags
	Substring            string
}

type Library

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

func NewLibrary

func NewLibrary(
	ctx *context.Context,
	workspaces config.WorkspaceConfigList,
	execs config.ExecutableList,
	filter Filter,
	theme styles.Theme,
	runFunc func(string) error,
) *Library

func (*Library) Init

func (l *Library) Init() tea.Cmd

func (*Library) SetNotice

func (l *Library) SetNotice(notice string, level styles.NoticeLevel)

func (*Library) Update

func (l *Library) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Library) View

func (l *Library) View() string

Jump to

Keyboard shortcuts

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