//! Terminal prompts shared by CLI commands.
use ;
/// Whether questions can be asked: both stdin and stderr are terminals.
/// The error returned when a prompt is cancelled with `Esc` or `Ctrl-C`. The prompt has
/// already told the user, so commands exit without printing it again.
pub const CANCELLED: &str = "cancelled";
/// Describes an error returned by a prompt, using [`CANCELLED`] for cancellation.