Expand description
Interactive terminal helpers for prompts and transient status UI.
This module exists to keep blocking prompts and live terminal widgets behind a small runtime-aware surface. Callers decide whether prompting is part of their workflow; this module only answers whether the current terminal makes that safe and provides the mechanics when it does.
Contract:
- this module owns prompt/runtime gating and spinner mechanics
- it should not absorb command policy, validation rules, or higher-level workflow decisions
Public API shape:
InteractiveRuntimeuses the crate-wide constructor/factory naming:new(...)for exact runtime hints anddetect()for process probingInteractiveis a lightweight wrapper over those runtime hints rather than another place to encode workflow policy
Structs§
- Interactive
- Interactive prompt helper bound to a detected or injected terminal runtime.
- Interactive
Runtime - Interactive runtime hints used to decide whether live terminal UI is safe.
- Spinner
- Handle for a transient spinner shown on stderr.
Type Aliases§
- Interactive
Result - Result type used by interactive prompt helpers.