Documentation
¶
Overview ¶
Package ui implements Postline's terminal interface as a Bubble Tea program.
Index ¶
Constants ¶
View Source
const DownloadDirEnv = "POSTLINE_DOWNLOAD_DIR"
DownloadDirEnv overrides where saved attachments land.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the root Bubble Tea model. It is used as a pointer so async callbacks can be wired in after the program is constructed.
func NewWithProvider ¶
NewWithProvider builds a model bound to an existing provider, skipping authentication entirely.
func (*Model) ForceSetup ¶
func (m *Model) ForceSetup()
ForceSetup opens the wizard on launch even when a client is already available, which is how a user switches to their own Google Cloud project.
func (*Model) SetSend ¶
SetSend wires the program's message pump so background work can push updates that are not tied to a command's return value.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package components holds reusable, self-contained UI widgets.
|
Package components holds reusable, self-contained UI widgets. |
|
Package layout turns terminal dimensions into pane geometry, so views can ask what to draw rather than each recomputing breakpoints.
|
Package layout turns terminal dimensions into pane geometry, so views can ask what to draw rather than each recomputing breakpoints. |
|
Package theme holds Postline's color palette and shared Lip Gloss styles.
|
Package theme holds Postline's color palette and shared Lip Gloss styles. |
Click to show internal directories.
Click to hide internal directories.