Documentation
¶
Index ¶
- type CommitsView
- type JobActionMsg
- type JobSelectedMsg
- type JobsView
- type LogContentMsg
- type LogView
- type MRApproveMsg
- type MRApprovedMsg
- type MRBranchSearchMsg
- type MRBranchSearchResultMsg
- type MRCreateCancelMsg
- type MRCreateSubmitMsg
- type MRCreateView
- type MRDetailView
- func (v *MRDetailView) ForceReset()
- func (v *MRDetailView) SetDiffs(diffs []entity.MRDiff)
- func (v *MRDetailView) SetMR(mr *entity.MergeRequest)
- func (v *MRDetailView) SetNotes(notes []entity.MRNote)
- func (v MRDetailView) Update(msg tea.Msg) (MRDetailView, tea.Cmd)
- func (v MRDetailView) View() string
- type MRMergeMsg
- type MRMergedMsg
- type MRRefreshMsg
- type MRSelectedMsg
- type MergeRequestsView
- func (v MergeRequestsView) IsInputMode() bool
- func (v *MergeRequestsView) Reset()
- func (v *MergeRequestsView) SetHeight(h int)
- func (v *MergeRequestsView) SetMRs(mrs []entity.MergeRequest)
- func (v MergeRequestsView) Update(msg tea.Msg) (MergeRequestsView, tea.Cmd)
- func (v MergeRequestsView) View() string
- func (v *MergeRequestsView) VisibleMRs() []entity.MergeRequest
- type PipelineLimitCycleMsg
- type PipelineSelectedMsg
- type PipelinesView
- type ProjectAddMsg
- type ProjectDeleteMsg
- type ProjectSearchMsg
- type ProjectSearchResultMsg
- type ProjectSelectedMsg
- type ProjectsView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitsView ¶ added in v0.4.0
type CommitsView struct {
Commits []entity.Commit
Cursor int
Ref string
// contains filtered or unexported fields
}
func NewCommitsView ¶ added in v0.4.0
func NewCommitsView() CommitsView
func (*CommitsView) SetHeight ¶ added in v0.4.0
func (v *CommitsView) SetHeight(h int)
func (CommitsView) Update ¶ added in v0.4.0
func (v CommitsView) Update(msg tea.Msg) (CommitsView, tea.Cmd)
func (CommitsView) View ¶ added in v0.4.0
func (v CommitsView) View() string
type JobActionMsg ¶
type JobSelectedMsg ¶
type JobsView ¶
func NewJobsView ¶
func NewJobsView() JobsView
func (*JobsView) SelectedJob ¶ added in v0.3.0
type LogContentMsg ¶
type LogView ¶
type LogView struct {
// contains filtered or unexported fields
}
func NewLogView ¶
func NewLogView() LogView
type MRApproveMsg ¶ added in v0.4.0
type MRApproveMsg struct{ MR entity.MergeRequest }
type MRApprovedMsg ¶ added in v0.4.0
type MRApprovedMsg struct{ Err error }
type MRBranchSearchMsg ¶ added in v0.4.0
type MRBranchSearchMsg struct {
ProjectPath string
Query string
Field int // mrFieldSource or mrFieldTarget
}
MRBranchSearchMsg is sent by the view to request branch search.
type MRBranchSearchResultMsg ¶ added in v0.4.0
MRBranchSearchResultMsg is returned by the app with branch results.
type MRCreateCancelMsg ¶ added in v0.4.0
type MRCreateCancelMsg struct{}
type MRCreateSubmitMsg ¶ added in v0.4.0
type MRCreateSubmitMsg struct {
ProjectPath string
Opts entity.CreateMROptions
}
type MRCreateView ¶ added in v0.4.0
type MRCreateView struct {
// contains filtered or unexported fields
}
func NewMRCreateView ¶ added in v0.4.0
func NewMRCreateView() MRCreateView
func (*MRCreateView) Activate ¶ added in v0.4.0
func (v *MRCreateView) Activate(projects []string)
func (MRCreateView) IsInputMode ¶ added in v0.4.0
func (v MRCreateView) IsInputMode() bool
func (MRCreateView) Update ¶ added in v0.4.0
func (v MRCreateView) Update(msg tea.Msg) (MRCreateView, tea.Cmd)
func (MRCreateView) View ¶ added in v0.4.0
func (v MRCreateView) View() string
type MRDetailView ¶ added in v0.4.0
type MRDetailView struct {
// contains filtered or unexported fields
}
func NewMRDetailView ¶ added in v0.4.0
func NewMRDetailView() MRDetailView
func (*MRDetailView) ForceReset ¶ added in v0.4.0
func (v *MRDetailView) ForceReset()
func (*MRDetailView) SetDiffs ¶ added in v0.4.0
func (v *MRDetailView) SetDiffs(diffs []entity.MRDiff)
func (*MRDetailView) SetMR ¶ added in v0.4.0
func (v *MRDetailView) SetMR(mr *entity.MergeRequest)
func (*MRDetailView) SetNotes ¶ added in v0.4.0
func (v *MRDetailView) SetNotes(notes []entity.MRNote)
func (MRDetailView) Update ¶ added in v0.4.0
func (v MRDetailView) Update(msg tea.Msg) (MRDetailView, tea.Cmd)
func (MRDetailView) View ¶ added in v0.4.0
func (v MRDetailView) View() string
type MRMergeMsg ¶ added in v0.4.0
type MRMergeMsg struct{ MR entity.MergeRequest }
type MRMergedMsg ¶ added in v0.4.0
type MRMergedMsg struct {
MR *entity.MergeRequest
Err error
}
type MRRefreshMsg ¶ added in v0.4.0
type MRRefreshMsg struct{ MR entity.MergeRequest }
type MRSelectedMsg ¶ added in v0.4.0
type MRSelectedMsg struct{ MR entity.MergeRequest }
type MergeRequestsView ¶ added in v0.4.0
type MergeRequestsView struct {
MRs []entity.MergeRequest
Cursor int
Filter string
LoadingStatus string
// contains filtered or unexported fields
}
func NewMergeRequestsView ¶ added in v0.4.0
func NewMergeRequestsView() MergeRequestsView
func (MergeRequestsView) IsInputMode ¶ added in v0.4.0
func (v MergeRequestsView) IsInputMode() bool
func (*MergeRequestsView) Reset ¶ added in v0.4.3
func (v *MergeRequestsView) Reset()
func (*MergeRequestsView) SetHeight ¶ added in v0.4.0
func (v *MergeRequestsView) SetHeight(h int)
func (*MergeRequestsView) SetMRs ¶ added in v0.4.0
func (v *MergeRequestsView) SetMRs(mrs []entity.MergeRequest)
func (MergeRequestsView) Update ¶ added in v0.4.0
func (v MergeRequestsView) Update(msg tea.Msg) (MergeRequestsView, tea.Cmd)
func (MergeRequestsView) View ¶ added in v0.4.0
func (v MergeRequestsView) View() string
func (*MergeRequestsView) VisibleMRs ¶ added in v0.4.0
func (v *MergeRequestsView) VisibleMRs() []entity.MergeRequest
type PipelineLimitCycleMsg ¶
type PipelineLimitCycleMsg struct{}
type PipelineSelectedMsg ¶
type PipelinesView ¶
type PipelinesView struct {
Pipelines []entity.Pipeline
Cursor int
Limit int
Filter string
LoadingStatus string
// contains filtered or unexported fields
}
func NewPipelinesView ¶
func NewPipelinesView() PipelinesView
func (PipelinesView) IsInputMode ¶
func (v PipelinesView) IsInputMode() bool
func (*PipelinesView) SetHeight ¶
func (v *PipelinesView) SetHeight(h int)
func (*PipelinesView) SetPipelines ¶
func (v *PipelinesView) SetPipelines(pls []entity.Pipeline)
func (PipelinesView) Update ¶
func (v PipelinesView) Update(msg tea.Msg) (PipelinesView, tea.Cmd)
func (PipelinesView) View ¶
func (v PipelinesView) View() string
type ProjectAddMsg ¶
type ProjectAddMsg struct{ Path string }
type ProjectDeleteMsg ¶
type ProjectDeleteMsg struct{ Path string }
type ProjectSearchMsg ¶
type ProjectSearchMsg struct{ Query string }
ProjectSearchMsg is sent by the view to request a search. The app handles it and returns ProjectSearchResultMsg.
type ProjectSearchResultMsg ¶
type ProjectSelectedMsg ¶
type ProjectsView ¶
type ProjectsView struct {
Projects []entity.Project
Cursor int
LoadingStatus string
// contains filtered or unexported fields
}
func NewProjectsView ¶
func NewProjectsView() ProjectsView
func (ProjectsView) IsInputMode ¶
func (v ProjectsView) IsInputMode() bool
func (ProjectsView) Update ¶
func (v ProjectsView) Update(msg tea.Msg) (ProjectsView, tea.Cmd)
func (ProjectsView) View ¶
func (v ProjectsView) View() string
Click to show internal directories.
Click to hide internal directories.