Documentation
¶
Overview ¶
Package tui is the interactive front-end.
It is a front-end, not a second implementation: every screen calls the same internal/app orchestration and internal/ui rendering the commands do, so a behaviour exists in both or neither. Those two packages exist precisely because the first attempt kept the shared helpers in internal/cli, which deadlocked into an import cycle the moment the CLI needed to launch the TUI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
// Pack is the slug to sync; empty with All set means every pack.
Pack string
All bool
// DryRun is the Python menu's "Sync all packs (dry-run)".
DryRun bool
}
Action is what the menu asks the CLI to do once the TUI has exited.
A sync is run outside the alt screen, by the same code path as the `sync` command, so its progress lines and any failure land in the terminal's scrollback rather than vanishing with the TUI -- and so the two front-ends cannot sync differently.