Support linting input from stdin (#387)

This commit is contained in:
Harutaka Kawamura 2022-10-11 22:56:20 +09:00 committed by GitHub
parent 209dce2033
commit 8ba872ece4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 176 additions and 3 deletions

View file

@ -78,6 +78,9 @@ pub struct Cli {
// TODO(charlie): This should be a sub-command.
#[arg(long, hide = true)]
pub autoformat: bool,
/// The name of the file when passing it through stdin.
#[arg(long)]
pub stdin_filename: Option<String>,
}
pub enum Warnable {