tui

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountIEC

func ByteCountIEC(b int64) string

Types

type DashboardModel

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

func NewDashboardModel

func NewDashboardModel() *DashboardModel

func (*DashboardModel) AddTab

func (this *DashboardModel) AddTab(title string, view tea.Model)

func (DashboardModel) Init

func (this DashboardModel) Init() tea.Cmd

func (DashboardModel) RenderTabs

func (this DashboardModel) RenderTabs() string

func (DashboardModel) RenderView

func (this DashboardModel) RenderView() string

func (DashboardModel) Update

func (this DashboardModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (DashboardModel) View

func (this DashboardModel) View() string

type DownloadProgress

type DownloadProgress struct {
	Progress progress.Model
	// contains filtered or unexported fields
}

func NewDownloadProgress

func NewDownloadProgress(gpm gpm.GPM, dep gpm.Dependency, opts ...progress.Option) DownloadProgress

func (DownloadProgress) Close

func (dp DownloadProgress) Close() error

func (DownloadProgress) Err

func (dp DownloadProgress) Err() error

func (DownloadProgress) Finished

func (dp DownloadProgress) Finished() bool

func (DownloadProgress) Init

func (dp DownloadProgress) Init() tea.Cmd

func (DownloadProgress) ListenProgress

func (dp DownloadProgress) ListenProgress() tea.Msg

func (DownloadProgress) Read

func (dp DownloadProgress) Read(p []byte) (n int, err error)

func (DownloadProgress) TrackProgress

func (dp DownloadProgress) TrackProgress(src string, currentSize, totalSize int64, stream io.ReadCloser) io.ReadCloser

func (DownloadProgress) Update

func (dp DownloadProgress) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (DownloadProgress) View

func (dp DownloadProgress) View() string

type InstallModel

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

func NewInstallModel

func NewInstallModel(gpm gpm.GPM, deps ...gpm.Dependency) InstallModel

func (InstallModel) Errored

func (im InstallModel) Errored() bool

func (InstallModel) Init

func (im InstallModel) Init() tea.Cmd

func (InstallModel) Update

func (im InstallModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (InstallModel) View

func (im InstallModel) View() string

type ProgressMsg

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

type SearchModel

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

func NewSearch

func NewSearch() *SearchModel

func (*SearchModel) Blur

func (this *SearchModel) Blur()

func (*SearchModel) ComputeViewsSize

func (this *SearchModel) ComputeViewsSize()

func (*SearchModel) Focus

func (this *SearchModel) Focus()

func (*SearchModel) FocusNext

func (this *SearchModel) FocusNext() tea.Cmd

func (SearchModel) Init

func (this SearchModel) Init() tea.Cmd

func (SearchModel) RenderSearchInput

func (this SearchModel) RenderSearchInput() string

func (*SearchModel) SetFocus

func (this *SearchModel) SetFocus(newFocus focus) tea.Cmd

func (*SearchModel) SetView

func (this *SearchModel) SetView(focus focus, view view) tea.Cmd

func (SearchModel) Update

func (this SearchModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SearchModel) View

func (this SearchModel) View() string

Jump to

Keyboard shortcuts

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