Skip to main content

Module interactive

Module interactive 

Source
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:

  • InteractiveRuntime uses the crate-wide constructor/factory naming: new(...) for exact runtime hints and detect() for process probing
  • Interactive is 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.
InteractiveRuntime
Interactive runtime hints used to decide whether live terminal UI is safe.
Spinner
Handle for a transient spinner shown on stderr.

Type Aliases§

InteractiveResult
Result type used by interactive prompt helpers.