Documentation
¶
Index ¶
- func Clear()
- func GetChoice(options []string) string
- func InitList(listItem []string, title string) string
- func Input(text string) string
- func Table(cols []string, rows [][]string)
- type ChoiceModel
- type DownloadProgressModel
- type DownloadProgressWriter
- type InputModel
- type ListModel
- type ProgressErrMsg
- type ProgressMsg
- type SpinnerModel
- type TableModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChoiceModel ¶
type ChoiceModel struct {
// contains filtered or unexported fields
}
func (ChoiceModel) Init ¶
func (m ChoiceModel) Init() tea.Cmd
func (ChoiceModel) View ¶
func (m ChoiceModel) View() string
type DownloadProgressModel ¶
type DownloadProgressModel struct { Pw *DownloadProgressWriter Progress progress.Model // contains filtered or unexported fields }
func (DownloadProgressModel) Init ¶
func (m DownloadProgressModel) Init() tea.Cmd
func (DownloadProgressModel) View ¶
func (m DownloadProgressModel) View() string
type DownloadProgressWriter ¶
type DownloadProgressWriter struct { Total int File *os.File Reader io.Reader OnProgress func(float64) // contains filtered or unexported fields }
func (*DownloadProgressWriter) Start ¶
func (pw *DownloadProgressWriter) Start(p *tea.Program)
type InputModel ¶
type InputModel struct {
// contains filtered or unexported fields
}
func (InputModel) Init ¶
func (m InputModel) Init() tea.Cmd
func (InputModel) View ¶
func (m InputModel) View() string
type ProgressErrMsg ¶
type ProgressErrMsg struct {
// contains filtered or unexported fields
}
type ProgressMsg ¶
type ProgressMsg float64
type SpinnerModel ¶
type SpinnerModel struct { Prompt string // contains filtered or unexported fields }
func InitialSpinnerModel ¶
func InitialSpinnerModel() SpinnerModel
InitialSpinnerModel returns a new SpinnerModel
func (SpinnerModel) Init ¶
func (m SpinnerModel) Init() tea.Cmd
func (SpinnerModel) View ¶
func (m SpinnerModel) View() string
type TableModel ¶
type TableModel struct {
// contains filtered or unexported fields
}
func (TableModel) Init ¶
func (m TableModel) Init() tea.Cmd
func (TableModel) View ¶
func (m TableModel) View() string
Click to show internal directories.
Click to hide internal directories.