present 0.2.3

Interpolate the standard output of arbitrary shell scripts into your markdown files
Documentation
1
2
3
4
5
6
7
8
9
use crate::{common::*, Result};

pub(crate) fn prompt(message: &str) -> Result<String> {
  eprint!("{}", Style::new().apply_to(message).bold());
  let mut input = String::new();
  io::stdout().flush()?;
  io::stdin().read_line(&mut input)?;
  Ok(input.as_str().to_lowercase().trim().to_owned())
}