Documentation
¶
Overview ¶
Package statusbar renders the persistent top bar for the Tero app.
Index ¶
- Constants
- type Model
- func (m *Model) CloseDrawer()
- func (m *Model) DrawerView(width, height int) string
- func (m *Model) Height() int
- func (m *Model) Init() tea.Cmd
- func (m *Model) IsDrawerOpen() bool
- func (m *Model) NextTab()
- func (m *Model) SetContextPercent(percent int)
- func (m *Model) SetDB(db sqlite.DB) tea.Cmd
- func (m *Model) SetOrg(org string)
- func (m *Model) SetTitle(title string)
- func (m *Model) SetWidth(width int)
- func (m *Model) SetWorkspace(workspace string)
- func (m *Model) ShortHelp() []key.Binding
- func (m *Model) ToggleDrawer()
- func (m *Model) Update(msg tea.Msg) tea.Cmd
- func (m *Model) View() string
Constants ¶
View Source
const ( TabPolicy = 0 TabCatalog = 1 TabSync = 2 )
Tab indices for the drawer.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model renders the app status bar.
func (*Model) DrawerView ¶
DrawerView renders the drawer overlay.
func (*Model) IsDrawerOpen ¶
IsDrawerOpen returns whether the drawer is open.
func (*Model) SetContextPercent ¶
SetContextPercent sets the context window usage percentage.
func (*Model) SetWorkspace ¶
SetWorkspace sets the workspace name.
func (*Model) ShortHelp ¶
ShortHelp returns keybindings shown in the keybar when the drawer is open.
func (*Model) ToggleDrawer ¶
func (m *Model) ToggleDrawer()
ToggleDrawer toggles the drawer open/closed. Opening is suppressed until at least one tab has data.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package catalogstatus renders the catalog health indicator in the status bar.
|
Package catalogstatus renders the catalog health indicator in the status bar. |
|
Package policystatus renders the policy work indicator in the status bar.
|
Package policystatus renders the policy work indicator in the status bar. |
|
Package syncstatus renders sync connection status.
|
Package syncstatus renders sync connection status. |
Click to show internal directories.
Click to hide internal directories.