Skip to main content

Module ui

Module ui 

Source

Enums§

ConflictChoice
The user’s response to a conflict resolution prompt.
Status
Status indicator for an entry.
SyncBadge
Sync and diff state badges shown alongside each status line.

Constants§

BLUE
BOLD
CYAN
DIM
GREEN
MAGENTA
RED
RESET
YELLOW

Functions§

confirm
Ask a yes/no question. Returns true for yes.
conflict_header
Print a conflict header for a single entry.
conflict_prompt
Interactive conflict resolution prompt.
dim
Print a dimmed line.
error
Print an error message: ✗ <message>
header
Print a section header.
hint
Print a hint (verbose-only) message: <message>
info
Print an info message: · <message>
merge_clean_notice
Print a notice that a 3-way merge was clean (no conflict markers).
merge_conflict_notice
Print a notice that a 3-way merge succeeded with conflict markers.
paint
Apply a color if colors are enabled.
password
Prompt for a password (input hidden on Unix).
print_diff
Print a unified-diff-style comparison between two texts.
status_line
Print a status line for an entry, with an optional sync badge.
success
Print a success message: ✓ <message>
summary
Print a summary line after a batch operation.
warning
Print a warning message: ⚠ <message>