Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentItem ¶
type GitlabProject ¶
type GitlabProject struct { MergeRequests []*glb.MergeRequest AssignedMergeRequests []*glb.MergeRequest AuthoredMergeRequests []*glb.MergeRequest AssignedIssues []*glb.Issue AuthoredIssues []*glb.Issue RemoteProject *glb.Project // contains filtered or unexported fields }
func NewGitlabProject ¶
func NewGitlabProject(context *context, projectPath string) *GitlabProject
func (*GitlabProject) IssueCount ¶
func (project *GitlabProject) IssueCount() int
func (*GitlabProject) MergeRequestCount ¶
func (project *GitlabProject) MergeRequestCount() int
func (*GitlabProject) Refresh ¶
func (project *GitlabProject) Refresh()
Refresh reloads the gitlab data via the Gitlab API
func (*GitlabProject) StarCount ¶
func (project *GitlabProject) StarCount() int
type Widget ¶
type Widget struct { view.MultiSourceWidget view.TextWidget GitlabProjects []*GitlabProject Selected int Items []ContentItem // contains filtered or unexported fields }
func NewWidget ¶
func NewWidget(tviewApp *tview.Application, redrawChan chan bool, pages *tview.Pages, settings *Settings) *Widget
NewWidget creates a new instance of the widget
func (*Widget) GetItemCount ¶
GetItemCount returns the amount of PRs RRs and other PRs calculated so far as an int
func (*Widget) GetSelected ¶
GetSelected returns the index of the currently highlighted item as an int
func (*Widget) SetItemCount ¶
SetItemCount sets the amount of PRs RRs and other PRs throughout the widgets display creation
Click to show internal directories.
Click to hide internal directories.