library

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 24 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 workspace.WorkspaceList,
	execs executable.ExecutableList,
	filter Filter,
	theme styles.Theme,
	runFunc func(string) error,
) tuikit.View

Types

type Filter

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

type Library

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

func NewLibrary

func NewLibrary(
	ctx *context.Context,
	workspaces workspace.WorkspaceList,
	execs executable.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.OutputLevel)

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