presentation

package
v0.0.0-...-19e0c05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL