use std::io::{Read, Write}; use std::path::{Path, PathBuf}; use std::process::ExitCode; use std::sync::{Condvar, Mutex, PoisonError}; use tidyrs::config::{Config, Resolver}; use tidyrs::embed::Verbatim; use tidyrs::{Error, Formatter, Language, Settings, Shared, Whitespace, css, doc, handlebars}; 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