Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoginModel ¶
type LoginModel struct {
// contains filtered or unexported fields
}
LoginModel is a self-contained Bubble Tea model for the inline login wizard.
func (LoginModel) Init ¶
func (m LoginModel) Init() tea.Cmd
func (LoginModel) View ¶
func (m LoginModel) View() tea.View
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the root TUI model. All state lives here per the ELM architecture.
type TapeRecorder ¶
type TapeRecorder struct {
// contains filtered or unexported fields
}
TapeRecorder writes a VHS-compatible .tape file as the user interacts with the TUI. Every keypress is recorded with the elapsed time since the previous keypress as a Sleep command.
func NewTapeRecorder ¶
func NewTapeRecorder(path string) (*TapeRecorder, error)
NewTapeRecorder creates a TapeRecorder that writes to path. The file is created (or truncated) immediately; the tape header is written on the first call to WriteHeader (triggered by the first tea.WindowSizeMsg).
func (*TapeRecorder) Flush ¶
func (r *TapeRecorder) Flush()
Flush writes any remaining buffered Type text and closes the file. Call this after the Bubble Tea program exits.
func (*TapeRecorder) Record ¶
func (r *TapeRecorder) Record(msg tea.KeyPressMsg)
Record writes the VHS command for a keypress, preceded by a Sleep that reflects how long has passed since the previous keypress.
func (*TapeRecorder) WriteHeader ¶
func (r *TapeRecorder) WriteHeader()
WriteHeader writes the VHS tape header to the file. It is idempotent — only the first call has effect. Call this once the terminal size is known (from WindowSizeMsg).
Source Files
¶
- cache.go
- configversions.go
- cvarchived.go
- cvdetail.go
- cvfiles.go
- debugpanel.go
- hclcolor.go
- instanceinfo.go
- login.go
- messages.go
- model.go
- organizations.go
- orgdetail.go
- projdetail.go
- projects.go
- run.go
- rundetail.go
- runs.go
- stateversions.go
- styles.go
- svdetail.go
- svjson.go
- tape.go
- vardetail.go
- variables.go
- workspaces.go
- wsdetail.go
- wssettings.go