Documentation ¶
Index ¶
- func CreateLine(wordList list.List, numberOfSpaces int, leftoverSpaces int) string
- func RenderProfile(profile *mastodon.Account, width int, showImages bool) (string, error)
- func RenderStatus(status *mastodon.Status, toot *mast.Toot, width int, showImages bool, ...) (string, error)
- func RenderTimeline(timeline *mast.Timeline, width int, showImages bool, justifyText bool) (string, error)
- func RenderToot(toot *mast.Toot, width int, showImages bool, justifyText bool) (string, error)
- func StringPtr(s string) *string
- func TUI(tuiCore TUICore)
- func WrapWithIndent(stringToWrap string, maximumWidth int, indentString string, justifyText bool) string
- type ModeType
- type ProgressManager
- type TUICore
- type TUIOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLine ¶ added in v0.4.0
func RenderProfile ¶ added in v0.2.0
func RenderStatus ¶ added in v0.4.0
func RenderTimeline ¶
func RenderToot ¶
Types ¶
type ProgressManager ¶ added in v0.4.0
type ProgressManager struct {
// contains filtered or unexported fields
}
func NewProgress ¶ added in v0.4.0
func NewProgress(field *tview.InputField, app *tview.Application) *ProgressManager
func (*ProgressManager) Run ¶ added in v0.4.0
func (i *ProgressManager) Run(action func() (mast.CmdReturnCode, bool))
func (*ProgressManager) SetLabel ¶ added in v0.4.0
func (i *ProgressManager) SetLabel(label string)
type TUICore ¶
type TUICore struct { Client *mastodon.Client App *tview.Application CmdLine *tview.InputField Profile *tview.TextView Stream *tview.TextView Grid *tview.Grid Prompt string Mode ModeType Timeline mast.Timeline RenderedTimelineType mast.TimelineType Options TUIOptions Progress *ProgressManager Help string }
func (*TUICore) EnterCommandMode ¶
func (*TUICore) ExitCommandMode ¶
func (*TUICore) UpdateTimeline ¶
type TUIOptions ¶
Click to show internal directories.
Click to hide internal directories.