pub fn read_input(path: &Path) -> Result<String>Expand description
Read input from stdin (if path is “-”) or from a file
§Examples
use std::path::PathBuf;
use oxur_cli::common::io::read_input;
// Read from file
let content = read_input(&PathBuf::from("input.txt"))?;
// Read from stdin (if user passes "-")
let content = read_input(&PathBuf::from("-"))?;