Skip to main content

Module app

Module app 

Source
Expand description

TUI application state and setup/apply actions.

Structsยง

App
Mutable TUI session: screens, setup list, logs, modals, and background probe/fetch/reboot.
Cli
Clap flags for the TUI binary (--remote, --apply, pipeline toggles).

Enumsยง

BoxCliView
Box CLI footer/overview value (remote mode).
ConfirmKind
Confirmation dialog kinds shown as TUI overlays.
FetchEvent
Result of f fetch for one surface tab (not a full r refresh).
Modal
In-TUI overlay (confirm / free-text / sudo password).
RebootEvent
Progress from the background reboot thread.

Functionsยง

short_reboot_err ๐Ÿ”’
sleep_cancellable ๐Ÿ”’
ssh_host_up ๐Ÿ”’
wait_until_box_replies ๐Ÿ”’
After reboot is accepted: wait until the box stops answering once, then until it replies again. Esc sets cancel. Returns Err("cancelled") or timeout.