use std::io::{Read, Write}; use std::path::{Path, PathBuf}; use std::process::ExitCode; use std::sync::{Condvar, Mutex, PoisonError}; use tidyrs::Whitespace; use tidyrs::css; use tidyrs::embed::Verbatim; use tidyrs::handlebars::{self, Dialect}; use tidyrs::html::{self, Parser}; use tidyrs::xml; const HELP: &str = "\ tidyrs: a fast markup formatter Usage $ tidyrs [paths...] [options] Without paths, reads stdin and prints the result. With one file, prints the result unless --check or --write is set. Folders are searched for .html, .htm, .vue, .hbs, .handlebars, .css, .scss, and .less files, and for XML files: .xml, .svg, .plist, .csproj, pom.xml, and the other files that @prettier/plugin-xml formats. Style sheets in