use rucline::crossterm::style::Styler;
use rucline::prompt::{Builder, Prompt};
use rucline::Outcome::Accepted;
fn main() {
if let Ok(Accepted(string)) = Prompt::from("What's you favorite website? ".bold())
.completer(vec![
"https://www.rust-lang.org/",
"https://docs.rs/",
"https://crates.io/",
])
.suggester(vec![
"https://www.startpage.com/",
"https://www.google.com/",
])
.read_line()
{
println!("'{}' seems to be your favorite website", string);
}
}