Documentation ¶
Index ¶
- func ByteCountIEC(b int64) string
- type DashboardModel
- func (this *DashboardModel) AddTab(title string, view tea.Model)
- func (this DashboardModel) Init() tea.Cmd
- func (this DashboardModel) RenderTabs() string
- func (this DashboardModel) RenderView() string
- func (this DashboardModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (this DashboardModel) View() string
- type DownloadProgress
- func (dp DownloadProgress) Close() error
- func (dp DownloadProgress) Err() error
- func (dp DownloadProgress) Finished() bool
- func (dp DownloadProgress) Init() tea.Cmd
- func (dp DownloadProgress) ListenProgress() tea.Msg
- func (dp DownloadProgress) Read(p []byte) (n int, err error)
- func (dp DownloadProgress) TrackProgress(src string, currentSize, totalSize int64, stream io.ReadCloser) io.ReadCloser
- func (dp DownloadProgress) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (dp DownloadProgress) View() string
- type InstallModel
- type ProgressMsg
- type SearchModel
- func (this *SearchModel) Blur()
- func (this *SearchModel) ComputeViewsSize()
- func (this *SearchModel) Focus()
- func (this *SearchModel) FocusNext() tea.Cmd
- func (this SearchModel) Init() tea.Cmd
- func (this SearchModel) RenderSearchInput() string
- func (this *SearchModel) SetFocus(newFocus focus) tea.Cmd
- func (this *SearchModel) SetView(focus focus, view view) tea.Cmd
- func (this SearchModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (this SearchModel) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountIEC ¶
Types ¶
type DashboardModel ¶
type DashboardModel struct {
// contains filtered or unexported fields
}
func NewDashboardModel ¶
func NewDashboardModel() *DashboardModel
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) View ¶
func (this DashboardModel) View() string
type DownloadProgress ¶
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) TrackProgress ¶
func (dp DownloadProgress) TrackProgress(src string, currentSize, totalSize int64, stream io.ReadCloser) io.ReadCloser
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) 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) View ¶
func (this SearchModel) View() string
Click to show internal directories.
Click to hide internal directories.