use std::io::{Read, Write}; use std::path::{Path, PathBuf}; use std::process::ExitCode; use tidy::config::{Config, Resolver}; use tidy::embed::Verbatim; use tidy::{Error, Formatter, Language, Options, Shared, Whitespace, css, doc, handlebars, json}; use tidy_walk::Output; const HELP: &str = "\ tidy: a fast formatter for markup, style sheets and data Usage $ tidy [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, .less, .md, and .markdown files, for JSON files: .json, .jsonc, .json5, package.json, and the others that Prettier formats, for .yml, .yaml and .toml files, and for XML files: .xml, .svg, .plist, .csproj, pom.xml, and the others that @prettier/plugin-xml formats. Style sheets in