Documentation
¶
Overview ¶
Package repostable is a Model that renders git repo states in a table. Providing functionality like filterning
Index ¶
- Constants
- Variables
- type Style
- type Table
- func (rt *Table) Blur()
- func (rt *Table) Cursor() int
- func (rt *Table) Filter(query string)
- func (rt *Table) Focus()
- func (rt *Table) GetCurrentRepoState() *report.RepoState
- func (rt *Table) GetRepoStateAt(index int) *report.RepoState
- func (rt Table) Init() tea.Cmd
- func (rt *Table) InitUI(width int, height int)
- func (rt *Table) SetReport(report report.ScanReport)
- func (rt Table) Update(msg tea.Msg) (Table, tea.Cmd)
- func (rt *Table) UpdateRepoState(index int, newState report.RepoState)
- func (rt *Table) UpdateWindowSize(width int, height int)
- func (rt Table) View() string
Constants ¶
View Source
const ( RepoW = 40 BranchW = 40 RemoteStateW = 20 //(uncommited files count + aheadW + behindW + 4 space) )
Variables ¶
View Source
var ReposTableStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color("63"))
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
Style Style
// contains filtered or unexported fields
}
func (*Table) Filter ¶
Filter filters repo states based on repo name. Then update table based on filtered repos
func (*Table) GetCurrentRepoState ¶
func (*Table) SetReport ¶
func (rt *Table) SetReport(report report.ScanReport)
func (*Table) UpdateRepoState ¶
func (*Table) UpdateWindowSize ¶
Click to show internal directories.
Click to hide internal directories.