Documentation ¶
Index ¶
- func PrettyPrintIssue(details *discussion.Details, width int, height int) string
- func SelectConfig(details []repository.Details, u *url.URL) (*configuration.Config, error)
- func ViewportInitSize(msg *tea.WindowSizeMsg, issueID string) viewport.Model
- func ViewportSetSize(vp *viewport.Model, msg *tea.WindowSizeMsg, issueID string)
- func ViewportView(vp *viewport.Model, issueID string) string
- type Shared
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyPrintIssue ¶
func PrettyPrintIssue(details *discussion.Details, width int, height int) string
PrettyPrintIssue renders the passed discussion as markdown.
func SelectConfig ¶
func SelectConfig(details []repository.Details, u *url.URL) (*configuration.Config, error)
SelectConfig returns the config associated with the URL if a URL is passed. Otherwise, a remote.Details is returned.
func ViewportInitSize ¶
func ViewportInitSize(msg *tea.WindowSizeMsg, issueID string) viewport.Model
ViewportInitSize creates a viewport with the given size.
func ViewportSetSize ¶
func ViewportSetSize(vp *viewport.Model, msg *tea.WindowSizeMsg, issueID string)
ViewportSetSize sets the size of the viewport with regard to its margins.
Types ¶
Click to show internal directories.
Click to hide internal directories.