ui

package
v0.0.0-...-b0fec18 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpinnerFunc

func NewSpinnerFunc(initial string, fn func(ch chan<- string) error) error

NewSpinnerFunc creates a new spiner with a given initial message and a function that will be executed in the background in a goroutine. The function can use the provided channel to send message stop the spinner to update the out. When the function returns the spinner will stop and the function will return the error result from the function.

Types

type CommandFinishedMsg

type CommandFinishedMsg struct{}

type CommandView

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

func NewCommandView

func NewCommandView(handle *commander.Action, back tea.Model) *CommandView

func (*CommandView) Init

func (c *CommandView) Init() tea.Cmd

Init implements tea.Model.

func (*CommandView) Update

func (c *CommandView) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*CommandView) View

func (c *CommandView) View() string

View implements tea.Model.

type Layout

type Layout struct {
	Body tea.Model
}

func NewLayout

func NewLayout(body tea.Model) *Layout

func (*Layout) Init

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

Init implements tea.Model.

func (*Layout) Update

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

Update implements tea.Model.

func (*Layout) View

func (l *Layout) View() string

View implements tea.Model.

type ListenableWriter

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

func (*ListenableWriter) Lines

func (w *ListenableWriter) Lines() []string

func (*ListenableWriter) String

func (w *ListenableWriter) String() string

func (*ListenableWriter) WaitUntilContent

func (w *ListenableWriter) WaitUntilContent() WriteEvent

func (*ListenableWriter) Write

func (w *ListenableWriter) Write(p []byte) (n int, err error)

type SearchCtrl

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

SearchCtrl is the controller/model for the fuzzer finding UI component

func NewSearchCtrl

func NewSearchCtrl(r []repos.Repository, rfs *repofs.RepoFS, cmd *commander.Commander) *SearchCtrl

func (SearchCtrl) ExitMessage

func (s SearchCtrl) ExitMessage() string

func (*SearchCtrl) Selected

func (c *SearchCtrl) Selected() repos.Repository

Selected returns the active selection by the user, or any empty object if no selection has been made OR the active index is out of range.

type SearchView

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

func NewSearchView

func NewSearchView(ctrl *SearchCtrl) *SearchView

func (*SearchView) Init

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

func (*SearchView) Update

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

func (*SearchView) View

func (m *SearchView) View() string

type Spinner

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

func NewSpinner

func NewSpinner(ch chan string, done chan struct{}, msg string) *Spinner

func (*Spinner) Init

func (s *Spinner) Init() tea.Cmd

Init implements tea.Model.

func (*Spinner) Update

func (s *Spinner) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*Spinner) View

func (s *Spinner) View() string

View implements tea.Model.

type WriteEvent

type WriteEvent struct{}

Jump to

Keyboard shortcuts

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