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