diff --git a/src/ui.rs b/src/ui.rs index 85eca22..73d7a54 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -5,14 +5,11 @@ pub mod deb; /// Line classifiers rewriting raw subprocess output for the live views pub mod logfmt; +/// Interactive raw-mode prompts: free-text input, option selection and +/// yes/no confirmation +pub mod prompt; -use crossterm::{ - cursor, event, execute, - style::{self, Color, Print, SetForegroundColor}, - terminal, -}; use indicatif::{MultiProgress, ProgressBar, ProgressStyle}; -use std::io::{self, Write}; use std::path::Path; use std::time::Duration; @@ -75,7 +72,9 @@ pub fn create_progress_bar( (pb, callback) } -const SELECT_PROMPT: &str = "> Select series: "; +/// Label of the interactive series selector, rendered by [`prompt::select`] +/// as `>