Documentation
¶
Overview ¶
Package presentation provides the TUI (Terminal User Interface) layer for curly.
This package implements the Bubble Tea application structure and wires together. all the models, views, and services to create an interactive terminal UI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApp ¶
func NewApp( requestService *app.RequestService, historyService *app.HistoryService, authService *app.AuthService, ) *tea.Program
NewApp creates and configures a new Bubble Tea application.
It takes the application services as dependencies and wires them into the. presentation layer models. The returned tea.Program is ready to run.
Example usage:.
program := presentation.NewApp(requestService, historyService, authService).
if err := program.Start(); err != nil {.
log.Fatal(err).
}.
func RunApp ¶
func RunApp( requestService *app.RequestService, historyService *app.HistoryService, authService *app.AuthService, ) error
RunApp is a convenience function that creates and runs the application.
It creates a new Bubble Tea program and starts it immediately. This is the simplest way to launch the TUI from main.go.
Returns an error if the program fails to start or encounters a runtime error.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package components provides reusable UI components for the TUI.
|
Package components provides reusable UI components for the TUI. |
|
Package models contains Bubble Tea models for the presentation layer.
|
Package models contains Bubble Tea models for the presentation layer. |
|
Package styles provides consistent styling for the TUI using Lipgloss.
|
Package styles provides consistent styling for the TUI using Lipgloss. |
|
Package views provides view rendering functions for the presentation layer.
|
Package views provides view rendering functions for the presentation layer. |