tui

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package tui implements the terminal UI behind `a-novel run ui`, the daemon-backed dashboard for the local service stack. It is built on Bubble Tea and Lip Gloss, and every action routes through the same RPC client the CLI uses, so the UI and CLI always observe the same daemon state.

The screen is a two-column dashboard: a service navigator on the left and a per-target detail-and-log pane on the right, with a status bar and a footer hint below.

┌──────────────┬──────────────────────────────────────────────────┐
│ Services     │ Tabs: [t1] [t2] [t3]                             │
│              │ ┌──────────────────────────────────────────────┐ │
│ ● svc-X 2/4  │ │ <target detail header>                       │ │
│ ○ svc-Y 0/4  │ │ ────────────────────────────────────────── │ │
│              │ │ <log lines, follow-end>                      │ │
│              │ │                                              │ │
│              │ └──────────────────────────────────────────────┘ │
│              │ <footer hint>                          [Esc] cmd │
└──────────────┴──────────────────────────────────────────────────┘

Commands reach the daemon through three surfaces: the always-visible footer hint, an Esc-triggered command input with autocomplete, and a dedicated help screen.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() error

Run launches the TUI in the alt-screen and blocks until the user quits. Returns nil on clean exit, error on unrecoverable failure (typically: daemon unreachable).

Types

This section is empty.

Jump to

Keyboard shortcuts

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