Documentation
¶
Index ¶
- func BorderedTable(title string, headers []string, rows [][]string) string
- func RenderActionBar(width int, actions []ActionBarItem, helpText string) string
- func RenderBreadcrumb(items []string) string
- func RenderHeader(title string, breadcrumb []string, width int) string
- func SimpleDiff(oldDoc, newDoc *models.ExcelDocument) string
- func SimpleTable(headers []string, rows [][]string) string
- type ActionBarItem
- type Checkbox
- type DiffViewMode
- type DiffViewer
- type FileItem
- type FilePicker
- type MultiProgress
- type ProgressBar
- type SpinnerProgress
- type Table
- func (t *Table) AddRow(row []string)
- func (t *Table) ClearRows()
- func (t *Table) MoveDown()
- func (t *Table) MoveUp()
- func (t *Table) SelectedIndex() int
- func (t *Table) SelectedRow() []string
- func (t *Table) SetHeight(height int)
- func (t *Table) SetRows(rows [][]string)
- func (t *Table) SetShowCursor(show bool)
- func (t Table) View() string
- type TableWithCommands
- type TextInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BorderedTable ¶
BorderedTable wraps a table in a nice border
func RenderActionBar ¶ added in v0.1.4
func RenderActionBar(width int, actions []ActionBarItem, helpText string) string
RenderActionBar creates a consistent action bar for all screens
func RenderBreadcrumb ¶ added in v0.1.4
RenderBreadcrumb creates a breadcrumb navigation
func RenderHeader ¶ added in v0.1.4
RenderHeader creates a consistent header with title and breadcrumb
func SimpleDiff ¶
func SimpleDiff(oldDoc, newDoc *models.ExcelDocument) string
SimpleDiff creates a quick diff view from two Excel documents
func SimpleTable ¶
SimpleTable creates a quick table from data without interaction
Types ¶
type ActionBarItem ¶ added in v0.1.4
ActionBarItem represents a single action in the action bar
type Checkbox ¶
type Checkbox struct {
// contains filtered or unexported fields
}
func NewCheckbox ¶
func (*Checkbox) SetChecked ¶
type DiffViewMode ¶
type DiffViewMode int
const ( DiffViewSummary DiffViewMode = iota DiffViewBySheet DiffViewByCell DiffViewSideBySide )
type DiffViewer ¶
type DiffViewer struct {
// contains filtered or unexported fields
}
func NewDiffViewer ¶
func NewDiffViewer(diff *models.ExcelDiff) DiffViewer
func (*DiffViewer) NextMode ¶
func (d *DiffViewer) NextMode()
func (*DiffViewer) ScrollDown ¶
func (d *DiffViewer) ScrollDown()
func (*DiffViewer) ScrollUp ¶
func (d *DiffViewer) ScrollUp()
func (*DiffViewer) SelectNext ¶
func (d *DiffViewer) SelectNext()
func (*DiffViewer) SelectPrev ¶
func (d *DiffViewer) SelectPrev()
func (*DiffViewer) SetDimensions ¶
func (d *DiffViewer) SetDimensions(width, height int)
func (*DiffViewer) ToggleDetails ¶
func (d *DiffViewer) ToggleDetails()
func (DiffViewer) View ¶
func (d DiffViewer) View() string
type FilePicker ¶
type FilePicker struct {
// contains filtered or unexported fields
}
func NewFilePicker ¶
func NewFilePicker(startPath string, directoriesOnly bool) FilePicker
func (FilePicker) Init ¶
func (fp FilePicker) Init() tea.Cmd
func (*FilePicker) SelectedPath ¶
func (fp *FilePicker) SelectedPath() string
func (*FilePicker) SetExtensions ¶
func (fp *FilePicker) SetExtensions(extensions []string)
func (FilePicker) Update ¶
func (fp FilePicker) Update(msg tea.Msg) (FilePicker, tea.Cmd)
func (FilePicker) View ¶
func (fp FilePicker) View() string
type MultiProgress ¶
type MultiProgress struct {
// contains filtered or unexported fields
}
MultiProgress manages multiple progress bars
func NewMultiProgress ¶
func NewMultiProgress() MultiProgress
func (*MultiProgress) RemoveBar ¶
func (m *MultiProgress) RemoveBar(id string)
func (*MultiProgress) UpdateBar ¶
func (m *MultiProgress) UpdateBar(id string, current int)
func (MultiProgress) View ¶
func (m MultiProgress) View() string
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
func NewProgressBar ¶
func NewProgressBar(total int) ProgressBar
func (ProgressBar) Percentage ¶
func (p ProgressBar) Percentage() float64
func (*ProgressBar) SetLabel ¶
func (p *ProgressBar) SetLabel(label string)
func (*ProgressBar) SetProgress ¶
func (p *ProgressBar) SetProgress(current int)
func (*ProgressBar) SetWidth ¶
func (p *ProgressBar) SetWidth(width int)
func (ProgressBar) View ¶
func (p ProgressBar) View() string
type SpinnerProgress ¶
type SpinnerProgress struct {
// contains filtered or unexported fields
}
SpinnerProgress shows an indeterminate progress spinner
func NewSpinnerProgress ¶
func NewSpinnerProgress(label string) SpinnerProgress
func (*SpinnerProgress) Next ¶
func (s *SpinnerProgress) Next()
func (SpinnerProgress) View ¶
func (s SpinnerProgress) View() string
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) SelectedIndex ¶
func (*Table) SelectedRow ¶
func (*Table) SetShowCursor ¶
type TableWithCommands ¶
type TableWithCommands struct {
Table
}
TableWithCommands is a table that can handle keyboard input
func NewTableWithCommands ¶
func NewTableWithCommands(headers []string) TableWithCommands
func (TableWithCommands) Update ¶
func (t TableWithCommands) Update(msg interface{}) TableWithCommands
type TextInput ¶
type TextInput struct {
// contains filtered or unexported fields
}
func NewTextInput ¶
Click to show internal directories.
Click to hide internal directories.